[CentOS] manipulating files and directories with spaces

Ignacio Vazquez-Abrams ivazqueznet at gmail.com
Wed Nov 21 10:24:41 UTC 2007


On Wed, 2007-11-21 at 04:39 -0500, William L. Maltby wrote:
> On Wed, 2007-11-21 at 10:04 +0100, Ralph Angenendt wrote:
> > find . -type f -exec chmod 123 {} +
> 
> Easier to type and more natural (for me). But less efficient than the
> xargs version since each file cause a new process to be spawned.

Wrong. + causes find to append as many items as possible.

-- 
Ignacio Vazquez-Abrams <ivazqueznet at gmail.com>

PLEASE don't CC me; I'm already subscribed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.centos.org/pipermail/centos/attachments/20071121/fc71a7bd/attachment.bin


More information about the CentOS mailing list