Finding non-jpg files

Dariusz J. Garbowski thuforuk at yahoo.co.uk
Tue Aug 22 23:14:17 UTC 2006


On 08/23/2006 12:10 AM, Felipe Figueiredo wrote:
> Dariusz,
> 
> On Tuesday 22 August 2006 20:01, Dariusz J. Garbowski wrote:
>> find DIRECTORY -not -name "*.[jJ][pP][gG]" -and -not -name
>> "*.[jJ][pP][eE][gG]" -type f -exec rm -v {} \;
> 
> 
> you might want to read the manpage for find and look for the option "-iname". 
> I'm sure you'll like it very much.

Yep, makes case-sensitivity handling easier and saves on typing :-) 
Thanks Felipe!

Regards,
Dariusz




		
___________________________________________________________ 
Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html





More information about the kubuntu-users mailing list