From owner-freebsd-questions Fri May 10 17:14:29 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA05995 for questions-outgoing; Fri, 10 May 1996 17:14:29 -0700 (PDT) Received: from mistery.mcafee.com (jimd@mistery.mcafee.com [192.187.128.69]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id RAA05989 for ; Fri, 10 May 1996 17:14:27 -0700 (PDT) Received: (from jimd@localhost) by mistery.mcafee.com (8.6.11/8.6.9) id RAA19253; Fri, 10 May 1996 17:18:31 -0700 From: Jim Dennis Message-Id: <199605110018.RAA19253@mistery.mcafee.com> Subject: Re: running gag: chmod -R .\* To: robin@is.co.za Date: Fri, 10 May 1996 17:18:31 -0700 (PDT) Cc: mac@nibsc.ac.uk, garth@dogbert.systems.sa.gov.au, questions@freefall.freebsd.org In-Reply-To: <199605101316.PAA00755@admin.is.co.za> from "Robin Lunn" at May 10, 96 03:16:15 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > 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