Date: Fri, 10 May 1996 17:18:31 -0700 (PDT) From: Jim Dennis <jimd@mistery.mcafee.com> To: robin@is.co.za Cc: mac@nibsc.ac.uk, garth@dogbert.systems.sa.gov.au, questions@freefall.freebsd.org Subject: Re: running gag: chmod -R .\* Message-ID: <199605110018.RAA19253@mistery.mcafee.com> In-Reply-To: <199605101316.PAA00755@admin.is.co.za> from "Robin Lunn" at May 10, 96 03:16:15 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> > mac@nibsc.ac.uk wrote: > > >find . -type f -exec chmod 0644 {} \; find ... | xargs chmod 0644 is often faster (and easier to type then quoting the braces under bash). '-exec' can often be replaced by '| xargs' and will often be much faster. You might (very occasionally) bump into files with embedded whitespace in them (bad!). GNU 'find' and 'xargs' support a switches to pass the files as ASCIIZ strings (null-terminated) -- or I think there's a way to make 'find' die on the first *bad* file. Jim Dennis, System Administrator, McAfee Associates
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605110018.RAA19253>