Also sprach Dallman Ross (Sun 10 Aug 02003 at 08:24:35PM +0200):
On Sat, Aug 09, 2003 at 02:50:31PM -0500, David W. Tamkin wrote:
Scott suggested,
Be nice about it:
nice -n 19 find / -name make -print 2>/dev/null | xargs ls -l
That would spread the load over more time; for all I know that will
annoy them more because the process, while lighter, lives longer.
But I did it another way:
echo /*/make /*/*/make /*/*/*/make
This is now academic given the evolution of the discussion, but
I would do:
gfind / -name make -type f -maxdepth 3 -perm -50 2>/dev/null |
xargs -ls -ld
The maxdepth thing is going to save you from descending through all
levels of the tree.
KrispyKream is wrong to say that the -ls option to find is more
efficient; it is not. Options to find are executed once per
each file found. Otoh, a pipe to xargs runs the ls command one
time only, on all arguments found. More efficient, by orders
of magnitude!
For that matter, this is probably quickest and most efficient:
ls -lL `find / ! -type d 2>/dev/null | grep '/make$'`
--
Best Regards,
mds
-
Dare to fix things before they break . . .
-
Our capacity for understanding is inversely proportional to how much
we think we know. The more I know, the more I know I don't know . . .
--
pgpaozgb6AGZu.pgp
Description: PGP signature
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail