Deleting all image files with "small" keyword

Paolo Galtieri pgaltieri at gmail.com
Sat Apr 10 22:34:31 UTC 2010


On 04/10/2010 03:10 PM, Leonard Adjei wrote:
> What I'm worried about is it deleting filenames (music) which has the
> word "small" in them. Or that is unlikely??
>
> -----------
> $ find AUDIO/  -name \*Small\* exec rm -i {} \;
> find: paths must precede expression: exec
> Usage: find [-H] [-L] [-P] [-Olevel] [-D
> help|tree|search|stat|rates|opt|exec] [path...] [expression]
>
>
> This is what I got after execution, there's an error somewhere
>    
There needs to be a '-' before the exec; i.e.:

find AUDIO/  -name \*Small\* -exec rm -i {} \;


Paolo




More information about the users mailing list