Created
August 9, 2014 06:04
-
-
Save kamikat/5014675a76a0b821a284 to your computer and use it in GitHub Desktop.
Decode BarCode/QRCode image file using ZXing online decoder
This file contains hidden or 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/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