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 10:30
You have a large, late-model pick-up truck with a rear seat. the pick-up truck weighs 6,500 pounds. the florida seat belt law
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
in 2007, floridians died in alcohol-related collisions.a.  501b.  1,051c.  5,015d.  10,839
Answers: 1
question
Computers and Technology, 23.06.2019 07:50
Apython programming question: assume s is a string of lower case characters. write a program that prints the number of times the string 'bob' occurs in s. for example, if s = 'azcbobobegghakl', then your program should print number of times bob occurs is: 2
Answers: 3
question
Computers and Technology, 23.06.2019 23:30
Perform an online search about the booting process of a computer and list all the steps
Answers: 2
You know the right answer?
A Simple Shell for File Redirection. Design and implement a simple shell program to read a command...
Questions
question
History, 05.05.2020 04:29
question
History, 05.05.2020 04:29
Questions on the website: 13722367