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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!