find . -type f -name "*.[sS]mall*" | egrep "\.jpg|\.png|\.bmp" >/tmp/L
while read line
do
rm $line
done < /tmp/L
/tmp/L contains a list of files that match the regular _expression_ in the egrep command. You can then read the file line by line and remove the files.
Paolo
On Sat, Apr 10, 2010 at 2:46 PM, Leonard Adjei <kinkelson@xxxxxxxxx> wrote:
> find <folder name> -type f -name "*[Ss]mall*" -exec rm {} \;This would delete all Files with Small or small in the filenames.
I want to delete image files [png,jpg,bmp] only not music files with
small in their names too
Thanks
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
-- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines