1 2 3 4 5
BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf " [ARPHRD_%s] = \"%s\",\n", $1, $1 } END{print "};"}