Exiftool - how to add author tag based on the folder name the pdf is residing in -
trying write script make exiftool write result of
echo "${pwd##*/}"
to author metadata tag.
let's pdf located in /researchjournal/research1/manual1.pdf
i want use exiftool append research1 author of manual1.pdf.
when i'm in /researchjournal/research1 folder, type echo "${pwd##*/}"
in terminal , result research1
.
however don't know how write exiftool command correctly.
i know can use exiftool -author=research1
, want write command can use on number of different folders without having hard code actual folder name each time.
you can make following commands:
cd /researchjournal/research1 exiftool -author=${pwd##*/} *.pdf
tested in sh/bash shells.
Comments
Post a Comment