Date: Tue, 4 Jul 2000 17:37:45 +0100 From: Mark Ovens <mark@ukug.uk.freebsd.org> To: Christoph Sold <so@server.i-clue.de> Cc: Willem Brown <willem@brwn.org>, Christoph Sold <so@server.ms-agentur.de>, FreeBSD-Questions@freebsd.org Subject: Re: find -exec Problem Message-ID: <20000704173745.D233@parish> 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
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. > Because everything after ``-exec'' up to the ``\;'' is passed as *separate* args to exec(3). Using the single quotes made the whole thing into a single arg. > 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 > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- If I buy a copy of WinDelete, and it doesn't delete Windows, am I entitled to my money back? ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com 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?20000704173745.D233>