Lab 12



  1. Using the file test commands write a script that will tell you if a file entered on the comand is a directory or file. Give an error messge if the file does not exist
  2. Examples:
    $ ./s4 s4
    s4 is a file
    $ ./s4 s5
    Error
    $ ./s4 .
    . is a directory
    
  3. email me both the script and some samples of running.

© Allan Kochis Last revision 5/31/2005