Possible Duplicate:
Arg list too long error while using find
I try to find many files in many folders with specific content, and delete them.
find dir.*/* -exec grep -l "content" {} \; | xargs rm -f
And I get following message:
-bash: /bin/find: Argument list too long
Can you help me?
dir.*/*, maybe just.would be appropriate?findwill (by default) act recursively – lk- Aug 30 '12 at 20:02find dir.*/. ! -name . -prune -name '*' -exec grep -l "content" {} \; | xargs rm -f– Webeith Aug 30 '12 at 20:13