5 ms·
Sll – strip long lines from grep output
- dalke 11y agoTwo 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.