Table of Contents
Previous Sample | List of Samples | Next Sample

Newfiles.csh


#  List all the files or directories in the current directory that
#  do not occur in the specified directory.

#  Copyright (c) 1990 by Hamilton Laboratories.  All rights reserved.


proc newfiles(olddir)
   local i
   foreach i (*)
      if (! -e $olddir\$i) calc i
   end
end

newfiles $argv



Previous Sample | List of Samples | Next Sample
Table of Contents



Copyright © 1988-2003 by Hamilton Laboratories. All rights reserved.