Main Menu

user imput tag

Started by j99mac, November 02, 2021, 03:28:10 PM

Previous topic - Next topic

j99mac

I am trying to run the fallowing script. Where a user imputs a tag name and then it runs and show the exif data for that command. When I run it I I get this error Error: File format error.

echo "Enter the Tag name"
   read tag_name
echo "Enter the file path"      
   read path
  exiftool -"$tag_name" "$path" > ${now}.csv

Phil Harvey

Echo the command that you are running so you can see if it is correct.

If so, try running from the command line.

If the problem still occurs, post the file that gives the error and we'll be able to help more.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).