Deleting all image files with "small" keyword

Joachim Backes joachim.backes at rhrk.uni-kl.de
Sun Apr 11 05:54:59 UTC 2010


On 04/11/2010 01:04 AM, Leonard Adjei wrote:
> using
>   sudo find AUDIO/  -name \*Small\*.jpg -exec rm  {} \;
> worked fine for me.
>
> Thanks

Hi,

this will run the rm command separately for *each found* "small".jpg file.

Probably faster:

find AUDIO/  -name \*Small\*.jpg|xargs rm

This starts rm only once, but depends on the maximum command length 
allowed for your shell.

-- 
Joachim Backes <joachim.backes at rhrk.uni-kl.de>

http://www.rhrk.uni-kl.de/~backes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6131 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20100411/7e9eaca8/attachment.bin 


More information about the users mailing list