Main Menu

Multiline command

Started by Jom, January 29, 2020, 08:25:16 PM

Previous topic - Next topic

Jom

Hello.

How can I split a single command into multiple lines?

From
exiftool -progress: -progress -EXIF:Artist="Author" -EXIF:Copyright="Author" -IPTC:By-Line="Author" -IPTC:CopyrightNotice="Author" -XMP:Creator="Author" -XMP:Rights="Author" "-IPTC:ObjectName<Filename" "-XMP:PreservedFileName<Filename" "-XMP:CameraFilename<Filename" "-XMP:OriginalFileName<Filename" "-XMP:RawFileName<Filename" -EXIF:OffsetTime="+03:00" -EXIF:OffsetTimeOriginal="+03:00" -EXIF:OffsetTimeDigitized="+03:00" -ext cr2 .

to
exiftool -progress: -progress
-EXIF:Artist="Author"
-EXIF:Copyright="Author"
-IPTC:By-Line="Author"
-IPTC:CopyrightNotice="Author"
-XMP:Creator="Author"
-XMP:Rights="Author"
"-IPTC:ObjectName<Filename"
"-XMP:PreservedFileName<Filename"
"-XMP:CameraFilename<Filename"
"-XMP:OriginalFileName<Filename"
"-XMP:RawFileName<Filename"
-EXIF:OffsetTime="+03:00"
-EXIF:OffsetTimeOriginal="+03:00"
-EXIF:OffsetTimeDigitized="+03:00"
-ext cr2 .

Phil Harvey

On Mac/Linux, you can continue on the next line by putting a backslash at the end.

- 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 ($).

Jom


StarGeek

More of a Windows question, but my quick google search brought up this.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

Jom

I soon realized that exiftool is helpless here, it depends on the command line shell. But I have already asked a question.
I didn't realize right away. I haven't used Exiftool for a long time.
Thanks anyway.