Finding non-jpg files
Rob Blomquist
rob.blomquist at verizon.net
Tue Aug 22 22:24:14 UTC 2006
>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.
I think that one could solve this with "ls -R regex" where the regex would look for the dot and 2 characters after. Then avoid them like the plague.
There are several help sites for regex on the net, and I have written a few, but I am no guru.
Rob
who only looks like a guru.
Rob Blomquist
Mountlake Terrace, WA
More information about the kubuntu-users
mailing list