/* * Assignment Seven * * Using program six as a starting point, write * a new program that has the child * As before, the program loops back for a new command * and if a number is detected before the redirection * operator, that FD is redirected instead of 0 or 1. * Also, if the >> operator is detected, append the * program output to the file. * * The program should be able to process the following * commands: * ls -P 2> file * which directs stderr to "file" * * cat file1 file2 >> file3 * which adds the contents file1 to the end of file3; * then adds the contents of file2 to the end of file3. * * C. The ability to open a file in "append mode" when the * >> operator is detected. * */