sed:print:print_lines_of_less_than_n_characters

This is an old revision of the document!


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/print/print_lines_of_less_than_n_characters.1597654515.txt.gz · Last modified: 2020/08/17 08:55 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki