Lab 14



  1. Write a shell script to produce the number of files and directories in a directory. file information.
  2. Script uses
    1. The file test operator
    2. The ls command
  3. Examples
    1. Not a directory
      $ ./tally.1 HWK22
      HWK22 is not a directory
      $
      
    2. On a directory
      $ ./tally.1 fromoldserver
      fromoldserver
          9 sub directories
          20 files
      $
      
  4. When you get this working email the script and several examples of usage.

© Allan Kochis Last revision 5/31/2005