What does this print?
printf 'bob,30\nann,4\ncid,12\n' | sort -t, -k2 -n | head -1
ann,4bob,30cid,12ann
-t, sets the separator, -k2 sorts on the second field, and -n compares it numerically, so 4 comes first.printf 'bob,30\nann,4\ncid,12\n' | sort -t, -k2 -n | head -1
ann,4bob,30cid,12ann-t, sets the separator, -k2 sorts on the second field, and -n compares it numerically, so 4 comes first.