Advertisement
metalx1000

HID Barcode Scanner BASH Script

Feb 1st, 2018
1,004
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.15 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. while [ 1 ]
  4. do
  5.   clear
  6.   echo -n "Scan Barcode:"
  7.   read s
  8.  
  9.   x="$(grep "$s," scan.lst|tail -n 1|cut -d\, -f2)"
  10.   eval $x
  11. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement