gist/vcard/generate-qr.bash

15 lines
332 B
Bash
Raw Normal View History

2023-01-22 10:56:22 +01:00
#!/usr/bin/env bash
# Turn vcards into QR codes
# loop through all vcard files
2023-02-26 18:01:13 +01:00
for vcard in *.vcard; do
2024-06-11 19:58:27 +02:00
if [ -f "$vcard" ]; then
# -l H - high error correction
# -t utf8 - output to terminal
# -r - read file
# -o output file
qrencode -l H -t utf8 -r $vcard
qrencode -l H -o $vcard.png -r $vcard
fi
2023-01-22 10:56:22 +01:00
done