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