home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!psinntp!curly.appmag.com!pa
- From: pa@curly.appmag.com (Pierre Asselin)
- Newsgroups: comp.unix.aix
- Subject: Re: skulker/find problem
- Message-ID: <1195@curly.appmag.com>
- Date: 21 Jul 92 15:54:45 GMT
- References: <1992Jul20.180100.2522@terminator.cc.umich.edu>
- Organization: Applied Magnetics, Goleta, CA
- Lines: 22
-
- In <1992Jul20.180100.2522@terminator.cc.umich.edu> kens@psc.lsa.umich.edu (Ken Small) writes:
-
- > find /tmp -mtime +1 -type f -exec /bin/rm {} \;
-
- >This should find all the matching files and delete them-- however, find
- >seems to replace the {}'s with the cwd instead of the name of the file it
- >finds.
-
- I just tried
-
- find /tmp -mtime +1 -type f -exec /bin/echo {} \;
-
- and it worked OK. Check yout /tmp for files with funny names, for
- example a with leading blank.
-
- Hem. Does "find -exec cmd" spawn a shell or does it fork()/execvp()
- the cmd directly? If it does the latter, it should be relatively
- immune to strange file names.
- --
-
- --Pierre Asselin, Magnetoresistive Head Engineering, Applied Magnetics.
- pa@appmag.com the usual disclaimers apply.
-