Sample code to accompany slides on writing a shell. These samples involve using file redirection and pipes. Makefile: make file for all programs, just type "make" logusers.c: Output redirection, program execs who and saves output in a log file. peterpiper.c: Single process that creates a pipe, writes to it and then reads from it. pipesize.c: Program that writes to a pipe continuously. This program will eventually get hung (when it reaches the capacity of the pipe). ^C to kill it. sortedls.c: creates a pipeline, basically: "ls | sort" sortfile.c uses file input redirection, arranges it so that sort reads from a file.