Skip to content

Instantly share code, notes, and snippets.

@jaggy
Created February 9, 2014 01:00
Show Gist options
  • Save jaggy/8892670 to your computer and use it in GitHub Desktop.
Save jaggy/8892670 to your computer and use it in GitHub Desktop.
Generate a barcode from a string
#!/usr/bin/env bash
set -o errexit
set -o pipefail
filename=$1
string=$2
barcode -E -b "${string}" -o ${filename}.eps
convert ${filename}.eps ${filename}.jpg
rm ${filename}.eps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment