Question: Part 2. Task1 A Simple Shell to run One Command with File Redirection ( < input, > output, >> append). Write a C program to
Part 2. Task1 A Simple Shell to run One Command with File Redirection (< input, > output, >> append). Write a C program to design and implement a simple shell program to handle "one command" with file redirection. For example (and for test cases)
1. ls > part2out1.txt
2. wc < part2out1.txt
3. date > part2out2.txt
4. ls -1 >> part2out2.txt
5. wc < part2out2.txt >> part2out3.txt 6
. whoami
7. date
Provide a Makefile file to compile your program. Your Program Name: a3p2redir1.c
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
