Sort by Line Length

Tagged with: , , , , ,

Sort file by line length. Original Article…


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

One Response to “Sort by Line Length

Leave a Reply