home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / hcshdemo.zip / csh-os2.zip / SAMPLES / NEWFILES.CSH < prev    next >
Text File  |  1993-09-28  |  296b  |  15 lines

  1. #    List all the files or directories in the current directory that
  2. #    do not occur in the specified directory.
  3.  
  4. #    Copyright (c) 1990 by Hamilton Laboratories.  All rights reserved.
  5.  
  6.  
  7. proc newfiles(olddir)
  8.     local i
  9.     foreach i (*)
  10.         if (! -e $olddir\$i) calc i
  11.     end
  12. end
  13.  
  14. newfiles $argv
  15.