1 2 3 4 5 6 7 8 9 10 11 12
BEGIN { print "option|en|English" } /webif\/lang\/[a-zA-Z][a-zA-Z]*/ { gsub(/^.*webif\/lang\//, "") shortname = $0 gsub(/\/.*$/, "", shortname) gsub(/^.*=>[ \t]*/, "") longname = $0 print "option|" shortname "|" longname }