home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / os2 / apps / 7937 < prev    next >
Encoding:
Internet Message Format  |  1992-11-07  |  2.0 KB

  1. Xref: sparky comp.os.os2.apps:7937 comp.os.os2.misc:35591
  2. Newsgroups: comp.os.os2.apps,comp.os.os2.misc
  3. Path: sparky!uunet!news.univie.ac.at!hp4at!rcvie!cc_paul
  4. From: cc_paul@rcvie.co.at (Wolf Paul)
  5. Subject: Re: Port of unix 'find' on OS/2?
  6. Message-ID: <1992Nov6.142518.10897@rcvie.co.at>
  7. Sender: cc_paul@rcvie.co.at (Wolf N. Paul)
  8. Reply-To: cc_paul@rcvie.co.at (Wolf N. Paul)
  9. Organization: Alcatel Austria - Elin Research Center, Vienna
  10. References: <hatton.720779901@cgl.ucsf.edu> <1dcjruINNkeu@travis.csd.harris.com> <sens.3.721028065@FASECON.ECON.NYU.EDU>
  11. Date: Fri, 6 Nov 1992 14:25:18 GMT
  12. Lines: 30
  13.  
  14. In article <sens.3.721028065@FASECON.ECON.NYU.EDU> sens@FASECON.ECON.NYU.EDU (Sunando Sen) writes:
  15. )There is an OS/2 2.0 version of GNU find (as well as locate!).  It is in a 
  16. )file called "GNUFIND.ZIP" (or some such) in the directory /pub/os2/2.0/gnu.  
  17. )GNU find was never part of their file utilities package anyway.  I don't 
  18. )know how you can use it search many different partitions though, since under 
  19. )Unix different partions are mounted as directories.  Would "find / -name 
  20. )junk -exec rm {}\;" delete all files named "junk" in all partions?  I have 
  21. )only one partion, so I haven't been able to find out.  However, find, locate 
  22. )and updatedb all work very nicely under OS/2.  Hope this helps.
  23.  
  24. It's very simple, you just specify more than one path, like so:
  25.  
  26.     find c:/ d:/ e:/ -name '*.tmp' -exec rm {} ';'
  27.  
  28. and it will delete all files whose names end in '.tmp' on drives C, D, and E.
  29.  
  30. UNIX find (and I assume GNU find) allow more than one starting
  31. directory; the man page on SUN OS shows the syntax,
  32.  
  33.     find pathname-list expression
  34.  
  35. Regards,
  36.  
  37. Wolf
  38. -- 
  39.             V              
  40. +-----------------------+  Wolf N. Paul, Computer Center         wnp@rcvie.co.at
  41. |  A  L  C  A  T  E  L  |  Alcatel-Elin Research Center     +43-1-391621-122 (w)
  42. +-----------------------+  Ruthnergasse 1-7                   +43-1-391452 (fax)
  43.       ELIN RESEARCH        A-1210 Vienna-Austria/Europe        +43-1-2246913 (h)
  44.