Skip to content

Instantly share code, notes, and snippets.

@appersiano
Last active August 1, 2018 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save appersiano/cf2d7b10b263d64ba43c0caf63054c57 to your computer and use it in GitHub Desktop.
Save appersiano/cf2d7b10b263d64ba43c0caf63054c57 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Tool per la generazione dei QRCodes sequenziali utilizzando il servizio di Google
# Esempio A0001, A0002, A0003 etc etc
if [ "$#" -ne 1 ]; then
echo "Devi inserire un numero maggiore di zero, balordo"
else
echo Ok man! Let\'s generate "$1" QR Codes....woooooah! :D
echo
for ((i = 1; i <= $1; i++)); do
foo=$(printf "%04d" $i)
echo Generating $foo
wget /Users/zehus/QRCodeMartina -A png 'https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl='A$foo'&choe=UTF-8&chld=H|0' -O A$foo.png;
done
echo
echo All done!WoooooW
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment