Re: find -exec

1999-11-14 Thread John Pearson
On Fri, Nov 12, 1999 at 11:48:49PM -0800, aphro wrote > What i wanna do ..is 2 things > > find all files in a directory tree and chmod them 644 > > find all directories in a directory tree and chmod them 775 > > and i'm trying to do it with the find -exec command. For the directory > part i did

Re: find -exec

1999-11-13 Thread Martin Fluch
-BEGIN PGP SIGNED MESSAGE- On Fri, 12 Nov 1999, aphro wrote: > What i wanna do ..is 2 things > > find all files in a directory tree and chmod them 644 > > find all directories in a directory tree and chmod them 775 [...] > find . -exec chmod u+wx {} -type f > > to no avail ..no matt

Re: find -exec

1999-11-13 Thread Gregory T. Norris
> find . -exec chmod u+wx {} -type f The -exec portion of the command must be terminated by `;', which must also be escaped to the shell. As in: find . -exec chmod u+wx {} \; -type f

Re: find -exec

1999-11-13 Thread Dave Baker
> What i wanna do ..is 2 things > > find all files in a directory tree and chmod them 644 > > find . -exec chmod u+wx {} -type f > try this: find . -type f -exec echo {} \; I've replaced the chmod with a painless payload so you can test it out first. the \; is required to mark the end of the

Re: find -exec

1998-07-30 Thread Jens Ritter
Ulisses Alonso <[EMAIL PROTECTED]> writes: > Hi all > > I would like to know if there is a way to make something like this > > find -exec command1 {} | command2 \; > xargs? HTH, Jens --- [EMAIL PROTECTED] [EMAIL PROTECTED] Key ID: 2048/E451C639 Jens Ritter Key fingerprin

Re: find -exec

1998-07-29 Thread Oliver Elphick
Ulisses Alonso wrote: > >Hi all > >I would like to know if there is a way to make something like this > >find -exec command1 {} | command2 \; I take it you want to run the pipeline `command1 | command2' on each file. I don't think you can do this with find's own command line; the e