cleanup script needed
Greg Onufer
exodus at cheers.UUCP
Wed May 10 16:08:56 AEST 1989
In article <19510 at adm.BRL.MIL>, drears at PICA.ARMY.MIL (Dennis G. Rears (FSAC)) writes:
> /bin/find DIR -name "filename" -exec ls -l {} \;
>
> This will do it. This will give the full path name.
Ouch! Too much processor time is being wasted!
Try:
find DIR -name 'filename' -print
to get just the pathname, or:
find DIR -name 'filename' -ls
To get a directory listing (is the -ls flag standard or just a
SunOS'ism?).
Find is one of the most powerful Unix utilities, but has too many
command-line switches! This causes it to be mis-used or never-used
by a lot of people who really need such a utility.
-greg
More information about the Comp.unix.questions
mailing list