procmail
[Top] [All Lists]

Re: Nevermind (was compiling without a terminal)

2003-08-10 11:34:11
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!

You could also exclude with prune the path you already inherit,
since you established that make isn't there.

-- 
dman

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail