Plan 9 from Bell Labs’s /usr/web/sources/plan9/sys/src/cmd/dict/rev.awk
NF == 2 { printf "%s\t%s\n", $2, $1 } NF != 2 { print "ERROR " $0 }