Sort File By Length Of Lines
Join the DZone community and get the full member experience.
Join For FreeSort file by length of lines
cat $@ | awk '{ print length, $0 }' | sort -n | awk '{$1=""; print $0}'
Sort (Unix)
Opinions expressed by DZone contributors are their own.
Comments