ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: AllanMarcus on June 10, 2022, 06:41:38 PM

Title: Help outputting metadata
Post by: AllanMarcus on June 10, 2022, 06:41:38 PM
Hi. I recently installed exiftools, and feh, on a Pi as I make a photo frame. I want to display a little data with each image, so I tried this line:

allan@raspberrypi:~/Documents $ exiftool -p "info: $Make $Model $Lens $Aperture $ShutterSpeed $FocalLengthIn35mmFormat $DigitalCreationDate" /mnt/photos/2022/2022-01\ Baxter/DSC00184.jpg
info:


as you can see, none of the fields printed out. The data is there...

allan@raspberrypi:~/Documents $ exiftool -Make -Model -Lens -Aperture -ShutterSpeed -FocalLengthIn35mmFormat -DigitalCreationDate /mnt/photos/2022/2022-01\ Baxter/DSC00184.jpg
Make                            : SONY
Camera Model Name               : ILCE-7M4
Lens                            : E 28-200mm F2.8-5.6 A071
Aperture                        : 6.3
Shutter Speed                   : 1/100
Focal Length In 35mm Format     : 83 mm
Digital Creation Date           : 2022:01:08


I imagine I'm just missing something basic here. Any ideas?
Title: Re: Help outputting metadata
Post by: StarGeek on June 10, 2022, 09:58:42 PM
The dollar sign has a special meaning in Linux when there  are double quotes around it.  Change the double quotes to single quotes and you will get the results you want.