Sort file by line length. Original Article…
cat /etc/passwd | awk '{print length, 0}' | sort -n | awk '{1=""; print $0 }'
Byte sized tech know-how.
Sort file by line length. Original Article…
cat /etc/passwd | awk '{print length, 0}' | sort -n | awk '{1=""; print $0 }'
Copyright © 2024 Txt
cat /etc/passwd | perl -e ‘print sort { length(a) length(b) } ‘