Question
write a simple shell program called shell, you should be able to execute and control any program/command just as you would in a normal shell.
write a simple shell program called shell, you should be able to execute and control any program/command just as you would in a normal shell.
For instance shell> Command arg1 arg2 ... argN [ Output of Command shown here ]
Your shell should be able to do the following:
Redirect the input of a command from a file.
For example: shell> Command < input_file
Redirect the output of a command to a file.
For example: shell> Command > output_file
Implement filters, i.e., redirect the stdout of one command to stdin of another using pipes.
For example: shell> ls -l | wc -l shell> cat somefile | grep somestring | less
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