Guest User

Untitled

a guest
Jan 20th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. # Script for renaming pdf files from Lingoda to meaninful names
  2. # PDF titles from metadata as file name
  3. # Dependency: brew install exiftool
  4.  
  5. for file in *.pdf
  6. do
  7. 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"
  8. done
Add Comment
Please, Sign In to add comment