Skip to content

Instantly share code, notes, and snippets.

@gene1wood
Created June 23, 2019 19:51
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 gene1wood/abcdcd45135f7f753ba912990308bbc3 to your computer and use it in GitHub Desktop.
Save gene1wood/abcdcd45135f7f753ba912990308bbc3 to your computer and use it in GitHub Desktop.
Convert a string to a QR code.
#!/bin/bash
# Make sure qrencode and imagemagick are installed
read -p "Enter string to be displayed as a QR code : " value
echo -n "${value}" | qrencode --level=H --output=- --size=12 | display -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment