User Tools

Site Tools


sed:print:print_only_lines_which_do_not_match_regexp

Differences

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

Link to this comparison view

sed:print:print_only_lines_which_do_not_match_regexp [2020/08/16 12:40] – created 192.168.1.1sed:print:print_only_lines_which_do_not_match_regexp [2020/08/17 08:56] (current) – removed 192.168.1.1
Line 1: Line 1:
-====== SED - Print - Print only lines which do NOT match regexp ====== 
- 
-Emulates "grep -v". 
- 
-<code bash> 
-sed -n '/regexp/!p'          # method 1, corresponds to above 
-sed '/regexp/d'              # method 2, simpler syntax 
-</code> 
  
sed/print/print_only_lines_which_do_not_match_regexp.1597581631.txt.gz · Last modified: 2020/08/16 12:40 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki