Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Script for renaming pdf files from Lingoda to meaninful names
- # PDF titles from metadata as file name
- #Â Dependency: brew install exiftool
- for file in *.pdf
- do
- mv "$file" "$(exiftool $file -title -s -s -s | cut -d':' -f 2 | cut -c 2-50 | cut -d'[' -f 2 | cut -d']' -f 1).pdf"
- done
Add Comment
Please, Sign In to add comment