The program produced in this project should take as many command line pa-
rameters as necesary; the command line arguments should be taken as lenames
which should be opened for writing; it should take its input from standard input
(like cin) and should distribute its output as follows:
1. Every line input should go to standard output.
2. Initially every line should go to the le denoted by the rst parameter.
3. Lines starting by the command character are commands; the initial com-
mand character is @. Commands are free form, with spaces freely allowed.
The commands are:
(a) distribute f1, f2, ..., fn
The following lines of input are sent to each of the parameters f1, f2,
... fn. The f's may be either the lenames or positional numbers.
(b) change command character <new command character>
Change the command character.
(c) <command><command>
process a command character as a normal character.
(d) suspend
Output (aside from standard output) should cease until the next
distribute command.
(e) quit
The program should quit, even if not all input has been processed.
The program should quit either in response to the quit command or on end-of-
input.
1