Skip to content

Instantly share code, notes, and snippets.

@delucas
Last active May 7, 2017 15:49
Show Gist options
  • Save delucas/b669f527094815b6f114 to your computer and use it in GitHub Desktop.
Save delucas/b669f527094815b6f114 to your computer and use it in GitHub Desktop.
Descifrar archivo de resumen VISA, y copiarlo a Dropbox
#!/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