jadenpmoore2008
12.08.2020 •
Computers and Technology
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.
Solved
Show answers
More tips
- H Health and Medicine Want to Lose Weight? Gain Muscle without Damaging Your Health!...
- F Family and Home Parquet or laminate, which is better?...
- L Leisure and Entertainment How to Properly Wind Fishing Line onto a Reel?...
- L Leisure and Entertainment How to Make a Paper Boat in Simple Steps...
- T Travel and tourism Maldives Adventures: What is the Best Season to Visit the Luxurious Beaches?...
- H Health and Medicine Kinesiology: What is it and How Does it Work?...
- O Other How to Choose the Best Answer to Your Question on The Grand Question ?...
- L Leisure and Entertainment History of International Women s Day: When Did the Celebration of March 8th Begin?...
- S Style and Beauty Intimate Haircut: The Reasons, Popularity, and Risks...
- A Art and Culture When Will Eurovision 2011 Take Place?...
Answers on questions: Computers and Technology
- C Computers and Technology What is the main difference between business cards, envelopes and letterheads? information included layout use of color all of the above none of the above...
- C Computers and Technology The home page box will only appear with what people you may know...
- C Computers and Technology Software that sees and possibly records everything that is typed on a keyboard raises the issue of privacy for the person doing the typing. what is this controversial software...
- M Mathematics please help will mark brainlist Imagine that you are on a ride at The Howard County Sate Fair. You are told to bring the bar down so that you are safe on the ride. How does...
- M Mathematics Please help me! Will give brainlst :)...
- M Mathematics Slope Practice! Directions: Find the slope of the following lines. 1-6 Directions: find the slope of the line that passes through the given points. 7. (-8,-11) and (17,4)...
- M Mathematics Please help me! Will give brainlst :)...
- H History Did the missiles threaten the actual security of the United States?...
- M Mathematics I will give y=[ ? ]° z V 48Wx...
- H History Was Joseph Stalin and leader of Axis powers...
Ответ:
this should help! i read over the article a little bit and it seems to answer your question pretty well. https://www.snap.com.au/articles/the-pros-and-cons-of-digital-and-offset-printing.html