Posted By

AlpT on 01/13/07


Tagged

sort Shell line length awk


Versions (?)

Sort file by length of lines


 / Published in: Other
 

  1. cat $@ | awk '{ print length, $0 }' | sort -n | awk '{$1=""; print $0}'

Report this snippet  

You need to login to post a comment.