getting vendor IDs

Julian Elischer julian at elischer.org
Mon Dec 20 17:45:41 PST 2004


For those interested, here's a littel script that pruduces a list
of vendor names vs USB IDs. taken from the USB website in a backdoor manner.

#!/bin/sh
fetch -o- http://www.usb.org/app/db/search/contacts/ |\
awk  -F'[<=>"]' '/<option value=/{print $4 ":"  $6}'|\
sort -n |awk -F: '{printf "{ 0x%x, \"%s\" },\n", $1, $2 } '


I 'm sure it could be simplified.. :-)




More information about the freebsd-usb mailing list