I have a folder with many thousands of files, which due to an error had their extensions misnamed, all files now have the .jpg
extension.
In all the .jpg
files I would like to find the non-image files.
Is there a command-line way to identify which files are an actual image and which files are not?
I thought of looking for files without a preview, but cannot find a way to search files without a preview.
Here's an axample file that has a .jpg
extension, but is not a real image: