Last active
May 7, 2017 15:49
-
-
Save delucas/b669f527094815b6f114 to your computer and use it in GitHub Desktop.
Descifrar archivo de resumen VISA, y copiarlo a Dropbox
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 | |
INPUT=`ls -lt | grep pdf | head -n 1 | awk '{print $9}'` | |
OUTPUT=VISA-`date +"%Y%m%d"`.pdf | |
echo $INPUT | |
echo $OUTPUT | |
qpdf --password=$1 --decrypt `pwd`/$INPUT $OUTPUT | |
mv $OUTPUT $HOME/Dropbox | |
rm $INPUT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment