Skip to content

Instantly share code, notes, and snippets.

@delucas delucas/decrypt_visa.sh

Last active May 7, 2017
Embed
What would you like to do?
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
You can’t perform that action at this time.