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

Next revision
Previous revision
sed:print:print_lines_of_less_than_n_characters [2020/08/17 08:55] – created 192.168.1.1sed:print:print_lines_of_less_than_n_characters [2020/08/17 11:25] (current) 192.168.1.1
Line 4: Line 4:
  
 <code bash> <code bash>
-sed -n '/^.\{65\}/!p'        # method 1, corresponds to above +sed -n '/^.\{65\}/!p'              # method 1, corresponds to above 
-sed '/^.\{65\}/d'            # method 2, simpler syntax+sed '/^.\{65\}/d'                  # method 2, simpler syntax 
 + 
 +sed -n '/[[:graph:]]\{65\}/!p'     # Handles special characters too.
 </code> </code>
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