Last active
July 7, 2016 13:57
-
-
Save msmarcal/fcde32d51f31b846e7264b299a96ad8e to your computer and use it in GitHub Desktop.
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
PASSWD=<YOUR PASSWORD> | |
NEW_FILENAME="$(echo $1 | sed -E 's/Fatura_([0-9]{2})([0-9]{4}).*/\2-\1-VISA.pdf/')" | |
qpdf --decrypt --password=$PASSWD "$1" "$NEW_FILENAME" | |
/opt/local/bin/tag -a "topay" "$NEW_FILENAME" | |
rm -rf "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment