The order of the options are important (as mentioned in the man page):
Quote:
Warnings: Don't forget that the find command line is evaluated
as an expression, so putting -delete first will make find try to
delete everything below the starting points you specified.
|
This would probably have done what you expected (although errors might be shown):
Code:
find . -name *ADOBEJPEG* -delete
I personally try to zoom in as much as possible (add
-type f if you are after files or
-type d for directories) and use the
-exec rm {} \; option instead of -delete.
This is what i would have used instead:
Code:
find . -type f -name "*ADOBEJPEG*" -exec rm {} \;
Test it without the blue part.