[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: find e chmod



On Tue, Mar 04, 2003 at 12:01:25AM +0100, Nick Name wrote:
> On Mon, 3 Mar 2003 22:36:10 +0100
> GHERdO <tanga@freemail.it> wrote:
> >  find ${DIRECTORY} \( -type f -a -exec echo chmod 665 {} \; \) -o \
> >                    \( -type d -a -exec echo chmod 771 {} \; \)
> 
> Questo mi sembra il vincitore del torneo, perchè è un comando solo :) 
Secondo me il vincitore è:
find . -type f | xargs chmod 665
find . -type d | xargs chmod 771
perchè fa tutto con 6 processi (2 find 2 xargs 2 chmod).
-- 
Pengz
If money makes a man strange -- we gots to rearrange
So what makes the world go round
If love is against the law -- listen I don't know
Gotta change how it's goin down
Itzsoweezee -- De La Soul



Reply to: