From owner-freebsd-questions Mon Jul 3 14:37:19 2000 Delivered-To: freebsd-questions@freebsd.org Received: from snoopy.brwn.org (intgw1.brwn.org [196.28.127.66]) by hub.freebsd.org (Postfix) with ESMTP id 5852937B619 for ; Mon, 3 Jul 2000 14:37:12 -0700 (PDT) (envelope-from willem@snoopy.brwn.org) Received: by snoopy.brwn.org (Postfix, from userid 1001) id 3BD0F1D95; Mon, 3 Jul 2000 23:37:08 +0200 (SAST) Date: Mon, 3 Jul 2000 23:37:08 +0200 From: Willem Brown To: Christoph Sold Cc: Christoph Sold , FreeBSD-Questions@FreeBSD.ORG Subject: Re: find -exec Problem Message-ID: <20000703233707.D15794@snoopy.brwn.org> References: <3960FC7A.4217804D@i-clue.de> <20000703225424.C15794@snoopy.brwn.org> <39610086.FC0AAEF6@i-clue.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <39610086.FC0AAEF6@i-clue.de>; from so@server.i-clue.de on Mon, Jul 03, 2000 at 11:07:18PM +0200 X-Public-Key: http://www.brwn.org/~willem/pubkey.txt Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, Everything including the semi-colon is part of the expression used by -exec. You have to escape the semi-colon to stop the shell from using it. I guess the quotes confuses -exec just a bit. Regards Willem Brown On Mon, Jul 03, 2000 at 11:07:18PM +0200, Christoph Sold wrote: > > > Willem Brown wrote: > > > > Hi, > > > > On Mon, Jul 03, 2000 at 10:50:02PM +0200, Christoph Sold wrote: > > > Maybe it's just me, but... could some helpful soul look at the > > > following: > > > > > > # uname -a > > > FreeBSD me.here.org 3.4-STABLE FreeBSD 3.4-STABLE #7: Thu Jun 22 > > > 14:30:20 CEST 2000 root@me.here.org:/usr/src/sys/compile/ME i386 > > > # find . -type d -print -exec 'chmod o+rx {}'; > > > > I think you should escape the semi-colon. This worked for me: > > > > find . -type d -print -exec ls -l {} \; > > # find . -type d -print -exec chmod o+rx {} \; > > Worked. Removed quotes from problem above... worked. Dunno why. > > Thanks > -Christoph > > -- > i-clue GmbH, Endersbacher Str. 57, D-71334 Waiblingen > Fon: (0 71 51) 9 59 01-12, Fax: (0 71 51) 9 59 01-55 -- /* =============================================================== */ /* Linux, FreeBSD, NetBSD, OpenBSD. The choice is yours. */ /* =============================================================== */ "At a recent meeting in Snowmass, Colorado, a participant from Los Angeles fainted from hyperoxygenation, and we had to hold his head under the exhaust of a bus until he revived." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message