What I need:
A command that deletes all .jpg
files in the current directory and subdirectories that have been taken with a RaspberryPi Camera.
(Ideally this should work with the Git Bash for Windows, but this would make it just more convenient and is therefore optional.)
What I tried:
I already used find . -name "*.jpg" -size 24k -delete
to delete thumbnails and I found out that the file
utility is able to display the camera manufacturer (manufacturer=RaspberryPi
).
Example:
$ file f49100889.jpg
f49100889.jpg: JPEG image data, Exif standard: [TIFF image data,
big-endian, direntries=10, height=0, manufacturer=RaspberryPi,
model=RP_OV5647, xresolution=156, yresolution=164, resolutionunit=2,
datetime=2015:06:09 08:15:03, width=0], baseline, precision 8,
1920x1080, frames 3
Background:
The filesystem of an NTFS-Drive got corrupted and I restored the files using testdisk/photorec. Now I've got the files but lost some metadata such as the directory structure and file-names. I restored the most important files from a backup already and would like salvage as much of the remaining data as possible. I need to delete some garbage files to make working with the rest easier.
Is it possible to combine these commands to achieve my goal? If yes, how? Is there a better way to go about this?
Thanks in advance!