The program produced in this project should take as many command line pa-
rameters as necesary; the command line arguments should be taken as file names
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 file denoted by the first 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 filenames or positional numbers.
(b) change command character <new command character>
Change the command character.
process a command character as a normal character.
Output (aside from standard output) should cease until the next
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-