Originally Posted by forkbeard
Thanks for the reply/links, although I think I should have phrased it differently! What I'm after is not trying to find out what the file type is of certain files, but finding files of a certain file type. For example, using find or ls to locate all jpg files (but ones that don't have .jpg in the name).
Yes, I understood that. All I did was provide you with the important link.
The solution you want is a script which uses the file command to locate all the files of a certain type. You may also want to extend your search to subdirectories.
I suspect you'd also like to operate on the files - add .jpg to the end of their filenames or move them to a particular folder, or run some imagemagick operations for some reason.
You can encorporate these things into your script.