The actual code (bash script) is very specific to what I was doing, but I'm putting it here so I can find it if I want to do something similar again. Or maybe it will help someone else!
Created
June 23, 2012 22:05
-
-
Save scintill/2980245 to your computer and use it in GitHub Desktop.
rename a set of PDF's according to text found in each
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
#!/bin/bash | |
for f in *_*.pdf; do mv $f 2010`pdftk $f output - uncompress | grep -o "[0-9]\{2\}/[0-9]\{2\}" | tail -n1 | sed "s|/||g"`.pdf; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment