Created
August 14, 2013 02:47
-
-
Save tonussi/6227609 to your computer and use it in GitHub Desktop.
Usage of http://qpdf.sourceforge.net/
This file contains hidden or 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 | |
cd "/path/to/dir" | |
for file in `dir -d *` ; do | |
t=$(mktemp) | |
qpdf --password="password" --decrypt "$file" "$t" && \ | |
mv "$t" "$file" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment