Skip to content

Instantly share code, notes, and snippets.

@kamikat
Created August 9, 2014 06:04
Show Gist options
  • Save kamikat/5014675a76a0b821a284 to your computer and use it in GitHub Desktop.
Save kamikat/5014675a76a0b821a284 to your computer and use it in GitHub Desktop.
Decode BarCode/QRCode image file using ZXing online decoder
#!/bin/sh
curl -s -F f=@$1 http://zxing.org/w/decode |
grep -P -o "(?=<pre[^>]*>).*(?=</pre>)" |
grep -P -o "(?<=>).*$" |
uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment