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
-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
> 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
> 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
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
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
6 matches
Mail list logo