bash: no line no. with "Syntax: exiftool [OPTIONS] FILE"

Started by linuxuser, October 13, 2011, 05:57:53 PM

Previous topic - Next topic

linuxuser

I get the error "Syntax:  exiftool [OPTIONS] FILE" in a bash script, but no line no., as usual, where the error occurs. Is there a way to find out at which line no. the error occurs? There are a lot of lines with a correct exiftool syntax, so it is not so easy to find out, when the problem occurs.

Phil Harvey

ExifTool will display this message if you didn't provide a file name on the command line and if it couldn't run perldoc to display the full documentation.

Specify the name of a file to process and you should be good to go.

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