subject

A Simple Shell for File Redirection. Design and implement a simple shell program to read a command with a file redirection. Here we use the following file-redirection symbols as follow: "in=infile" for input file named "infile", "out=outfile" for output file named "outfile", "app=appfile" for output to be appended a file named "appfile". For example, "ls out=out. txt" will output the result of the command to a file named out. txt.
Name your program: a2prog2.c
Note. You should use the sample program (provided below) as your base code to implement this part.
Warning: Do not use any "system(…)" function call throughout this assignment.
For example (and for your test cases). Your current working directory is a3part1.
1. whoami
2. date
3. pwd
4. echo "Assignment3 Part1 #2 start"
5. ls
6. ls out=p1out1.txt
7. wc in=p1out1.txt
8. cat in=p1out1.txt
9. date out=p1out2.txt
10. date app=p1out2.txt
11. cat in=p1out2.txt
12. wc in=p1out1.txt out=p1out4.txt
13. cat in=p1out4.txt
14. echo "Assignment3 Part1 #2 done"
15. date
#3. Provide a Makefile file to compile your program.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:00
Why the bear has a slunky tail determine the meaning of the word slunk in the story
Answers: 1
question
Computers and Technology, 22.06.2019 15:30
Why would a programmer use the logical operator and in an if statement? a: when an action is to be taken that requires both conditions to be falseb: when an action is to be taken that requires both conditions to be truec: when an action is to be taken that requires the first condition to be falsed: when an action is to be taken that requires the second condition to be truei took the test and the answer is b.
Answers: 3
question
Computers and Technology, 23.06.2019 13:00
In excel - calculate the actual increase/decrease from first quarter to the second quarter then subtract subtract first quarter value from second quarter total then divide result by first quarter value
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
If i wanted to include a built-in calendar in a document, what option could i select? draw table insert table insert chart quick tables
Answers: 1
You know the right answer?
A Simple Shell for File Redirection. Design and implement a simple shell program to read a command...
Questions
question
Mathematics, 18.12.2020 20:20
question
Biology, 18.12.2020 20:20
Questions on the website: 13722367