Last active
August 1, 2018 09:40
-
-
Save appersiano/cf2d7b10b263d64ba43c0caf63054c57 to your computer and use it in GitHub Desktop.
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 | |
# 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