Piping command outputs into exiftool

Started by Ledian, March 16, 2024, 02:37:58 PM

Previous topic - Next topic

Ledian

Hello, I am trying to scan a couple of directories of files on linux and gather the image files in one place then pipe it to the exiftool to see the metadata. I'm not sure if this command is written properly and I can't seem to find a questions similar to mine.

The command is find ./ -name "*.png" | cat | exiftool -
Find is looking in my current directory for all files ending in .png, the output is then sent to cat which is displaying the files, which is then sent to exiftool. I am unsure if I can even scan multiple files with exiftool or if there is a better way to write this command.

StarGeek

If you want to look at the metadata for just PNG files, use the -ext (-extension) option

exiftool -ext png /path/to/files/

Add the -r (-recurse) option to recurse into subdirectories.

If you need to use find, you can pipe the filename list directly to exiftool. See this post.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

Ledian

I'm still new to learning linux, so thank you for your help!