Finding non-jpg files

Javier Aguilar Saavedra malandante at
Tue Aug 22 23:38:21 BST 2006

I'm not very good at shell scripting, so I just can tell you what I would

find | grep -v [.jpg] || [.jpeg] || [.JPG] || [.JPEG]

2006/8/22, Dotan Cohen <dotancohen at>:
> I have a large recursive directory of pictures that was once in a
> windows machine. Now that I have copied it to my linux box, I need to
> remove all the files that are NOT jpgs. How can I list all the files
> in a recursive directory that don't end in ".jpg" or ".jpeg"? A shell
> script would be nice, but even a gui program would help. Thanks.
> Dotan Cohen
> 23
> --
> kubuntu-users mailing list
> kubuntu-users at
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the kubuntu-users mailing list