sed:print:print_lines_of_less_than_n_characters
SED - Print - Print lines of less than N characters
For example, to print only lines of less than 65 characters:
sed -n '/^.\{65\}/!p' # method 1, corresponds to above sed '/^.\{65\}/d' # method 2, simpler syntax sed -n '/[[:graph:]]\{65\}/!p' # Handles special characters too.
sed/print/print_lines_of_less_than_n_characters.txt · Last modified: 2020/08/17 11:25 by 192.168.1.1