ExifTool Forum

ExifTool => Newbies => Topic started by: mdlr on November 28, 2022, 12:21:51 PM

Title: Formatting output using specific headings
Post by: mdlr on November 28, 2022, 12:21:51 PM
I had an older version of exiftool (version 9 or 10, I think) running in my old windows machine. I recently started working on a Linux machine, and the command in my rakefile that used to work on windows no longer seems to work:

exiftool -echo SourceFile,FileName,ImageWidth,ImageHeight,FileModifyDate -r -p /$directory/$filename,$filename,$imagewidth,$imageheight,$filemodifydate -d %Y-%m-%dT%H:%M:%S%z assets/photo > _data/images.csv

I am not sure if this is due to using a newer version of exiftool (12.12) or if it has something to do with my environment (running on docker).

The desired output looks something like this:

SourceFile    FileName    ImageWidth    ImageHeight    FileModifyDate
/assets/photo/file.jpg    file.jpg    818    545    2018-01-20T12:05:00-0500

Instead, I am getting this:

SourceFile    FileName    ImageWidth    ImageHeight    FileModifyDate
//               
Any help would be greatly appreciated.
Title: Re: Formatting output using specific headings
Post by: Phil Harvey on November 28, 2022, 12:37:40 PM
In Linux shells you need to put single quotes around arguments containing a dollar sign (see my sig).

- Phil
Title: Re: Formatting output using specific headings
Post by: mdlr on November 28, 2022, 12:53:06 PM
That did the trick! Thanks, Phill.