User Tools

Site Tools


sed:print:print_lines_which_match_a_regular_expression

SED - Print - Print lines which match a regular expression

Emulates “grep”.

sed -n '/regexp/p'           # method 1
sed '/regexp/!d'             # method 2
sed/print/print_lines_which_match_a_regular_expression.txt · Last modified: 2020/08/17 09:56 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki