Bash Script

Jonathan Dieter jdieter at gmail.com
Wed Jul 11 08:17:33 UTC 2007


On Wed, 2007-07-11 at 09:27 +0200, Andrew Kelly wrote:
> On Tue, 2007-07-10 at 19:46 -0500, John Pierce wrote:
> > Thanks, for all of the suggestions.  I have been reading man find and xargs.
> 
> I'm curious, why pipe to xargs when find can handle things itself?
> $ find /path -type f -exec chmod ugo-x {} \;
> 
> Andy
> 
Or how about:

$ chmod -R ugo-x /path; chmod -R ugo+X /path

to only use chmod (though you have to use it twice)

Jonathan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070711/ae5ab8de/attachment-0001.sig>


More information about the fedora-list mailing list