On Fri, 20 Jul 2001 at 8:54am, Nathan Straz wrote
> On Fri, Jul 20, 2001 at 08:24:35AM -0500, Tad Dolphay wrote:
> > > o Set the ACLs of a pretty large tree of files and directories
> > > recursively.
> > >
> >
> > I don't know if there's a more elegant way to do it but I think one could
> > do it with xargs, for example from the top level directory:
> >
> > find . -print | xargs -i -t chacl <acl stuff> {}
>
> Try this:
>
> find . -exec chacl <acl stuff> {} \;
Actually, that does the exact same thing as 'find | xargs', only slower.
;) It constantly has to spawn new chacl processes, then return to the
find, whereas 'find | xargs' finishes the find, then spawns one chacl
process. I did some testing on this once, and the differences can be
quite remarkable.
Note that, in the above example, the '-i {}' is redundant, since the
default behavior of xargs is to put stdin at the end of the specified
command.
--
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University
|