Sort strings by length

1
cat /etc/passwd | awk '{print length, $0}' | sort -n | awk '{$1=""; print $0 }'