ExifTool Forum

ExifTool => Newbies => Topic started by: Jom on January 29, 2020, 08:25:16 PM

Title: Multiline command
Post by: Jom on January 29, 2020, 08:25:16 PM
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 .
Title: Re: Multiline command
Post by: Phil Harvey on January 29, 2020, 09:06:01 PM
On Mac/Linux, you can continue on the next line by putting a backslash at the end.

- Phil
Title: Re: Multiline command
Post by: Jom on January 29, 2020, 09:14:53 PM
But this is on Windows 10.
Title: Re: Multiline command
Post by: StarGeek on January 29, 2020, 11:21:49 PM
More of a Windows question, but my quick google search brought up this (https://stackoverflow.com/a/69079/3525475).
Title: Re: Multiline command
Post by: Jom on January 29, 2020, 11:29:58 PM
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.