Write a shell program that accepts no less than one argument or more than nine arguments.
Each of the arguments must be checked to determine if it is a file. If it is not a file,
display an error message for each argument that is not a file, redirecting the message to a
temporary file and excluding it from the list of arguments used to produce the final output.
Each acceptable file then outputs (1) "This file named, (file name here) contains: ",
(2) cat|more|pg the file, and (3) display a blank line, a line with 15 underscores,
and another blank line. After all the good files are generated, take the information that
you redirected to the temporary file and output it to the screen using (1) a line that says
"These are entries that are not files: ", and (2) cat the temporary file.
2007-08-05
08:08:02
·
2 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design