Re: find -exec
-----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 matter what i do it keeps saying its "missing argument to
> `-exec' i've tried escaping it with \ tried single and double quotes,
> tried calling a single command with no arguements i moved the -exec
> command to the end of the find command ARGH NOTHING! There are about 5,000
> files i need to modify.
Try
find -type f | xargs chmod u+wx
should go a little bit faster, since chmod will not be executet for each
file seperately.
Martin
- --
If Windows is the answer, can we please have the problem back?
For public PGP-key: finger mfluch@mathphys.fsk.uni-heidelberg.de
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
iQCVAwUBOC0uGbCGSMW7I2etAQGlnAP9FEBh4IIr5FrvE3JxjnLzthtZ4HiI0Qfs
ByuNlTtF1JB7sGtOkZbM41ZQ3K2aT0RKAQwPpW16zS6EGuXtYt63+IuzVGOThjkZ
S5d6y5nIh5Ys5TCfZCE8gzjpp+vvpWTQw1FEuvQ54ksoiPUvGPlSyTTF7tnVTnYb
lPkfGznNu3M=
=kdUC
-----END PGP SIGNATURE-----
Reply to: