English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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

2 answers

I would probably use C.

2007-08-05 08:10:55 · answer #1 · answered by mdigitale 7 · 1 1

clipped your question to notepad. What language do you want it in ? Will need to do some research on your criteria.

E-Mail me and remind me about it in a day or so

2007-08-05 22:07:23 · answer #2 · answered by larystoy 3 · 0 0

fedest.com, questions and answers