Answered step by step
Verified Expert Solution
Question
1 Approved Answer
QUESTION 3 Assume that you have completed the tasks in the previous questions. You have written the program macro.c and saved the program the directory
QUESTION 3 Assume that you have completed the tasks in the previous questions. You have written the program macro.c and saved the program the directory CSE220-p01. (1) In this question, you will write a shell script named macro.sh to perform all the following tasks together: 1. Enter the home directory from anywhere; 2. Enter the directory CSE220-p01 3. Compile the program macro.c in CSE220-p01 and name the executable macro. Make sure all the warning are displayed during the compilation; 4. Make the file maco.sh executable 5. Execute your program by taking the input from inputdata.txt and write the result into the file outputdata.txt. (2) You have saved your script into macro.sh. Now, give the command that makes hello.sh executable and the command that runs the script macro.sh
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started