Date: Mon, 20 Dec 2004 17:45:40 -0800 From: Julian Elischer <julian@elischer.org> To: usb@freebsd.org, Lennart Augustsson <lennart@augustsson.net> Subject: getting vendor IDs Message-ID: <41C78044.2050005@elischer.org>
next in thread | raw e-mail | index | archive | help
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.. :-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41C78044.2050005>