Created
September 6, 2023 17:07
-
-
Save kokkytos/be88576322aeba9d9a1ab845f2aa33b5 to your computer and use it in GitHub Desktop.
[Batch edit metadata in pdf] #pdf #metadata #batch #exiftool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
while IFS="," read -r Filename Title Author Subject | |
do | |
echo "Filename:$Filename" | |
echo "Title: $Title" | |
echo "Author: $Author" | |
echo "Subject: $Subject" | |
echo "" | |
exiftool -Title="$Title" -Author="$Author" -Subject="$Subject" "$Filename" | |
done < <(tail -n +2 titles.csv) | |
# CSV file (titles.csv) contents: | |
#Filename,Title,Author,Subject | |
#Adelphoi Karamazob - A - Phiontor Ntostogephsku.pdf,Αδελφοί Καραμαζόφ (Α),Fyodor Dostoevsky,Λογοτεχνία |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment