User Tools

Site Tools


sed:print:print_lines_which_do_not_match_regexp

SED - Print - Print lines which do NOT match regexp

Emulates “grep -v”.

sed -n '/regexp/!p'          # method 1, corresponds to above
sed '/regexp/d'              # method 2, simpler syntax
sed/print/print_lines_which_do_not_match_regexp.txt · Last modified: 2020/08/17 09:56 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki