3 ms·
Two of the other million ways to do this are: perl -ne 'print if length()<1024' awk 'length($0)<1024' Note that if the last line is not newline termin
by dalke 11y ago
Two of the other million ways to do this are:
perl -ne 'print if length()<1024'
awk 'length($0)<1024'
Note that if the last line is not newline terminated then the sll and the awk solutions will add a newline, while the perl one will not.