Re: Deleting all image files with "small" keyword
- From: Paolo Galtieri <pgaltieri@xxxxxxxxx>
- Date: Sat, 10 Apr 2010 15:57:29 -0700
You can use
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
- Follow-Ups:
- Re: Deleting all image files with "small" keyword
- From: Leonard Adjei
- Re: Deleting all image files with "small" keyword
- References:
- Deleting all image files with "small" keyword
- From: Leonard Adjei
- Re: Deleting all image files with "small" keyword
- From: Paolo Galtieri
- Re: Deleting all image files with "small" keyword
- From: Leonard Adjei
- Deleting all image files with "small" keyword
- Prev by Date: Re: Yum Update - Metadata does not match checksum
- Next by Date: Re: Deleting all image files with "small" keyword
- Previous by thread: Re: Deleting all image files with "small" keyword
- Next by thread: Re: Deleting all image files with "small" keyword
- Index(es):
Relevant Pages
|