ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: frereroy on July 02, 2024, 03:27:03 PM

Title: Saving an output CSV to source directory
Post by: frereroy on July 02, 2024, 03:27:03 PM
exiftool -csv -f -r -icc_profile:ProfileDescription /Users/roy/Desktop/historique > roytest2.csv 

I was wondering if there was a simple instruction to save my roytest2.csv to my /Users/roy/Desktop/historique folder (i.e. default source folder) without having to assign the full path.

Knowing the cryptic genius of exiftool I suspect that there probably is!
Title: Re: Saving an output CSV to source directory
Post by: StarGeek on July 03, 2024, 03:05:25 AM
No, because this is file redirection (https://en.wikipedia.org/wiki/Redirection_(computing)), which is something handled by the command line (CMD/Terminal/bash).  Exiftool doesn't even see the > roytest2.csv part of the command.

The -csv option (https://exiftool.org/exiftool_pod.html#csv-CSVFILE) is a bit limited in controlling the output.  See also FAQ #12 "How do I export information from exiftool to a database?" (https://exiftool.org/faq.html#Q12)
Title: Re: Saving an output CSV to source directory
Post by: frereroy on July 03, 2024, 03:15:40 AM
Excelent explanation. I fully understand now. Many thanks.