Turn in your source code and compiled executable programs, with the specified program names, to Lab 3 in the CS Homework system.
This is an individual assignment. All work must be your own. You should not look at any other student's work (in whole or in part, on paper or on screen), nor allow anyone else to look at yours, during the course of this assignment.
Implement a set of shell commands. Note that you must use the specified C library calls to implement the commands.
Implement your own versions of the shell commands listed below. Your version should simply have the basic, default behavior. You do not need to implement any of the command flags that are not specifically identified here.
The 'man' Unix shell command is your friend!
(ss stands for Stanislaus State)
prompt> ./sscat myfile.txt 1: hello 2: world(Remember, ./ just tells a shell to search in the current folder for a desired file. So the ./ above simply means that you have the executable sscat program located in your current folder.)
prompt> ./ssgrep el myfile.txt hello yellow
The authors of our textbook have written a getting started programming C tutorial that may, indeed, help you get started.
Remember to test your programs on a variety of input. What happens when they are given invalid file names? Empty files? Not plain text files? Your programs should behave gracefully when given unexpected input.
Good commenting and code structure do, of course, count in the assignment grade.
Turn in your source code (3 .c files) and executables (3 files) to Lab 3 in the CS Homework system.