User Tools

Site Tools


exiftool

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
exiftool [2026-01-28 18:00:29]
mi [See also]
exiftool [2026-10-04 00:25:32] (current)
mi [Read specific tag]
Line 61: Line 61:
 <code bash> <code bash>
 for f in *.jpg; do exiftool "​-EXIF:​UserComment<​FILE:​Comment"​ "​$f";​ done for f in *.jpg; do exiftool "​-EXIF:​UserComment<​FILE:​Comment"​ "​$f";​ done
 +</​code>​
 +
 +== Read specific tag
 +
 +Use ''​-Tagname''​ to read just a specific tag. Add ''​-b''​ (''​-binary''​) option to not print the tag name. But then, there is no linefeed either! This example prints the "​Title"​ and the "​Filename",​ separated by a Tab and it uses ''​echo''​ and subshells so that a linefeed gets printed (there must be a better way, but I don't know it yet).
 +
 +<code bash>
 +for f in *; do echo -e $(exiftool -Title -b "​$f"​ 2>/​dev/​null)"​\t"​$(exiftool -Filename -b "​$f"​ 2>/​dev/​null);​ done
 +</​code>​
 +
 +=== Read Lyrics
 +To output the FMPS lyrics of file "​$f"​ including the linefeeds (instead of as a single line), add the ''​-b''​ (''​-binary''​) option:
 +
 +<code bash>
 +exiftool -FmpsLyrics -b "​$f"​
 </​code>​ </​code>​
  
/docs/dokuwiki/data/attic/exiftool.1769619629.txt.gz ยท Last modified: 2026-01-28 18:00:29 by mi