Date: Mon, 3 Jul 2000 23:37:08 +0200 From: Willem Brown <willem@brwn.org> To: Christoph Sold <so@server.i-clue.de> Cc: Christoph Sold <so@server.ms-agentur.de>, FreeBSD-Questions@FreeBSD.ORG Subject: Re: find -exec Problem Message-ID: <20000703233707.D15794@snoopy.brwn.org> In-Reply-To: <39610086.FC0AAEF6@i-clue.de>; from so@server.i-clue.de on Mon, Jul 03, 2000 at 11:07:18PM %2B0200 References: <3960FC7A.4217804D@i-clue.de> <20000703225424.C15794@snoopy.brwn.org> <39610086.FC0AAEF6@i-clue.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000703233707.D15794>