Posts Tagged With: length

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 }'
1 Comment »