From owner-freebsd-questions Thu Mar 11 15:11:50 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail1.desupernet.net (mail1.desupernet.net [204.249.184.36]) by hub.freebsd.org (Postfix) with SMTP id 9907B152D1 for ; Thu, 11 Mar 1999 15:11:08 -0800 (PST) (envelope-from gmann@cyberia.com) Received: (qmail 7994 invoked from network); 11 Mar 1999 23:10:23 -0000 Received: from unknown (HELO cyberia.com) (208.3.220.51) by mail1.desupernet.net with SMTP; 11 Mar 1999 23:10:23 -0000 Message-ID: <36E84D92.277CDD20@cyberia.com> Date: Thu, 11 Mar 1999 18:11:14 -0500 From: Glen Mann Organization: Phrantic Physics X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 2.2.8-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: cjclark@home.com Cc: questions@FreeBSD.ORG Subject: Re: find usage in shell script References: <199903112224.RAA05090@cc942873-a.ewndsr1.nj.home.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Crist J. Clark" wrote: > > Glen Mann wrote, > > > > Hello all- > > > > Can somebody explain why I can do this on the command line > > > > find ./data -type f -exec chown nobody {} \; \ > > -exec chgrp nogroup {} \; \ > > -exec chmod 664 {} \; > > > > But not in a Bourne shell script? > > No, I can't because I can run that in a sh-script. Works fine. > > > When I run the script with the backslashes > > to break up the command to make it readable, I get this > > > > # ./fix_perms > > find: : unknown option > > -exec: not found > > # > > > > Where is the second colon on the find: error line coming from? > > Do you happen to have a space-character behind one of those > backslashes? Just a guess. > -- > Crist J. Clark cjclark@home.com Wow - *that's* embrassing!! Thanks Crist for putting my glasses on! -Glen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message