how to insert a newline into output

Started by AlaskaDave, June 09, 2024, 10:12:32 AM

Previous topic - Next topic

AlaskaDave

What I'm trying to do was meant as a simple learning exercise but I've been unable to make it happen. I'm asking exiftool to print out the filename and keywords for a folder  containing images. I want to see the keywords on a separate line below the filename and then add a newline between each image's data. I'm running Win10.

Below is but one of many tries:

 exiftool -r -if "$keywords =~ /69/" -p "$FileName$/" $Keywords$/" "C:\Users\#####\Pictures\Suitcase--old photos and scans\Homer"

StarGeek

You have an extra double quote in your example command.

This work for me
C:\>exiftool -p "$FileName$/$Keywords$/" y:\!temp\Test3.jpg y:\!temp\Test4.jpg
Test3.jpg
one, two

Test4.jpg
three, four

    2 image files read
* 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).

AlaskaDave

Perfect. That worked well. Thank you.