home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / CMDS / find_1_1_5.lzh / find.man < prev    next >
Text File  |  1993-09-21  |  3KB  |  131 lines

  1.  
  2.  
  3.      FIND                              OS9                             FIND
  4.  
  5.      NAME:
  6.  
  7.        FIND - Find files
  8.  
  9.      SYNTAX:
  10.  
  11.        find startdir option match action
  12.  
  13.      DESCRIPTION:
  14.  
  15.        Find will start searching in startdir, and continue until all dirs
  16.        have been searched.  option is one of:
  17.        
  18.           -name filename  filename can be a wildcard pattern (see Pattern
  19.                           Matching below)
  20.           -user xxx       where xxx is a user id or user name
  21.                           specified in the password file
  22.           -type c         where c is 'd' for directory or 'f' for file
  23.           -segs n         specify number of segments to search for
  24.           -size n[c]      size in sectors (or characters if c is specified)
  25.           -links n        number of links
  26.           -group xxx      where xxx is a group number or name
  27.           -atime days     file last accessed (modified) in days
  28.           -ctime days     file created in days
  29.           -mtime days     file last modified in days
  30.           -perm ugo       ugo stands for user-group-other.  You must specify
  31.                           permissions in UNIX style (644 is owner r/w, other r)
  32.        
  33.        n and days may be modified with a leading - or +.  -days will search
  34.        for less than days and +days will search for more than days, and days
  35.        means exactly days.
  36.  
  37.        The only action currently supported is -print
  38.        
  39.        Pattern Matching:
  40.          Patterns must be enclosed in quotes so that the shell does not
  41.          expand them.
  42.  
  43.          * will match any string (just like OSK shell)
  44.          ? will match any character (just like OSK shell)
  45.          [] specify a set.  [A-Z] will match upper-case letters.  [a-z0-9] will
  46.             match lower-case or digit.  ^ will invert the set.  [^A-Z] match
  47.             everything but upper-case letter. (just like UNIX sh)
  48.  
  49.      EXAMPLES:
  50.  
  51.        Search for all files ending in .c:
  52.  
  53.          find /h0 -name '*.c' -print
  54.  
  55.        Search current directory for all files modified since yesterday:
  56.  
  57.          find . -mtime -1 -print
  58.  
  59.        Search oldfiles directory for all files over 7 days old:
  60.  
  61.          find /h0/OLDFILES -ctime +7 -print
  62.  
  63.  
  64.      LAST PRINTED: 05/29/93                                   Page: 01
  65.  
  66.  
  67.  
  68.      FIND                              OS9                             FIND
  69.  
  70.        Search for all files with more than 1 link:
  71.  
  72.          find /h0 -links +1 -print
  73.  
  74.      FILES:
  75.  
  76.        /dd/sys/passwd
  77.        /dd/sys/group
  78.  
  79.      CAVEATS:
  80.  
  81.        Doesn't completely support all UNIX options, yet.
  82.  
  83.        Also is a little slow.  Searches a hard drive of 269 directories,
  84.        3870 files, taking 58,408,704 bytes in 9 min 34 sec.
  85.  
  86.      AUTHOR:
  87.  
  88.        David George
  89.        310 State Street
  90.        Albany, NY  12210-2040
  91.        CIS: 72240,134
  92.        DELPHI: DAVGEORGE
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.      LAST PRINTED: 05/29/93                                   Page: 02
  131.