I want to remove certain files using find and -exec. But unlikely bash tells me, that I'm "missing" some argument.
find . -name *.png -exec rm {} /;
what do I miss?
same "missing argument" return for my attempt to rename some files:
find . -name ic_launcher.png -exec mv {} other_name.png /;
Can somebody tell me, what bash does miss, and why this command isn't successful?
/;
at the end? If so, try\;
instead. – D_Bye Jul 23 '12 at 09:32find
has-delete
option. There is no need in-exec rm {} \;
. – rush Jul 23 '12 at 09:39-delete
. But this wouldn't work for mymv
– Rafael T Jul 23 '12 at 09:42\\
, Forward slashes, or just slashes, lean forwards:/
. In Unix, slashes are generally path separators, while backslashes are generally used for quoting / escaping. – jw013 Jul 23 '12 at 12:19find
(and I guess its usually used under unix) suggests theslash
orpath-separator
/
to quote out the;
instead of thebackslash
\ – Rafael T Jul 23 '12 at 12:33instead
, it is the other way round. – user unknown Jul 23 '12 at 14:45