User Tools

Site Tools


sed:print:print_lines_of_less_than_n_characters

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
sed:print:print_lines_of_less_than_n_characters [2020/08/17 11:25] 192.168.1.1sed:print:print_lines_of_less_than_n_characters [2020/08/17 11:25] (current) 192.168.1.1
Line 7: Line 7:
 sed '/^.\{65\}/d'                  # method 2, simpler syntax sed '/^.\{65\}/d'                  # method 2, simpler syntax
  
-sed -n '/[[:graph:]]\{5\}/!p'      # Handles special characters too.+sed -n '/[[:graph:]]\{65\}/!p'     # Handles special characters too.
 </code> </code>
sed/print/print_lines_of_less_than_n_characters.1597663538.txt.gz · Last modified: 2020/08/17 11:25 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki