http://qs321.pair.com?node_id=1082227


in reply to How to capture a column from a set of lines

$ awk '{print $1 " " $5}' < foo | sort -k 2