home *** CD-ROM | disk | FTP | other *** search
/ Aminet 10 / aminetcdnumber101996.iso / Aminet / util / misc / find362.readme < prev    next >
Text File  |  1996-01-05  |  2KB  |  56 lines

  1. Short:    Locate/process files. Small & powerful!
  2. Author:   zodiac@darkness.gun.de (Ralph Seichter)
  3. Uploader: seichter@informatik.uni-bonn.de
  4. Type:     util/misc
  5.  
  6.    I wrote 'find' because I needed a tool to find files (obviously :) which
  7. match a given name pattern. 'find' is able to search multiple directories,
  8. including all subdirectories, the current directory and its subdirs, or the
  9. current CLI command path only. The output can be formatted in a way which
  10. tries to imitate 'List LFORMAT' behaviour, and you can make 'find' create
  11. shell scripts for you and execute them on the fly.
  12.  
  13.    Please note that 'find' is pure, you can make it resident. As it is less
  14. than 3 KB in size, this is recommended. Check the executable by using the
  15. List command (you should see output like the following line) and modify the
  16. file protection bits if necessary:
  17.  
  18.         find   2472 --p-rwed 06-Nov-95 18:14:09
  19.  
  20.    Requires 'dos.library' V36 (OS 2.0) or better.
  21.  
  22. [...]
  23.  
  24. USAGE EXAMPLES
  25.  
  26.    Locate all C source files on partition DH1:
  27.    -> find #?.c dh1:
  28.  
  29.    Find all Icons in the current directory and all its subdirs, but
  30.    don't display the ".info" suffix.
  31.    -> find #?.info lformat %m
  32.  
  33.    Get rid of all files with the prefix "foo" on some partitions, but
  34.    don't go deeper than three subdirectory levels while scanning.
  35.    -> find foo#? sys: dh2: bozo: depth=3 lformat="delete %p%n" exec
  36.  
  37.    Find 'Type' in the command path.
  38.    -> find Type path
  39.  
  40.    Find all occurences of 'bar' in the command path.
  41.    -> find bar full
  42.  
  43.    I hope that these few examples show some of the potential of 'find'. The
  44. possibility to create shell scripts and have them executed without further
  45. interaction is certainly very useful for many tasks.
  46.  
  47.  
  48. ============================= Archive contents =============================
  49.  
  50. Original  Packed Ratio    Date     Time    Name
  51. -------- ------- ----- --------- --------  -------------
  52.     2472    1531 38.0% 06-Dec-95 18:14:08  find
  53.     9027    5733 36.4% 06-Dec-95 18:22:26  find.doc
  54. -------- ------- ----- --------- --------
  55.    11499    7264 36.8% 13-Dec-95 00:31:24   2 files
  56.