|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /var/arpwatch/ |
Upload File : |
#!/bin/sh
# @(#) $Id: massagevendor-old,v 1.4 2000/09/17 21:00:46 leres Exp $ (LBL)
#
# Massage
#
# ftp://ftp.cavebear.com/pub/Ethernet.txt
# http://www.cavebear.com/CaveBear/Ethernet/vendor.html
#
# into ethercodes.dat format
#
sed -n \
-e '/^[0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][ ]/!d' \
-e 's/[ ][ ]*$//' \
-e p $* | \
awk -f euppertolower.awk | \
sed -n \
-e 's/^\([0-9A-Za-z][0-9A-Za-z]\)\([0-9A-Za-z][0-9A-Za-z]\)\([0-9A-Za-z][0-9A-Za-z]\)[ ]\(.*\)$/\1:\2:\3 \4/' \
-e 's/^0//' -e 's/:0\([0-9A-Za-z]\)/:\1/g' -e p | \
sort