User Tools

Site Tools


sed:print:print_only_lines_which_match_regular_expression

This is an old revision of the document!


SED - Print - Print only lines which match regular expression

Emulates “grep”.

sed -n '/regexp/p'           # method 1
sed '/regexp/!d'             # method 2
sed/print/print_only_lines_which_match_regular_expression.1597581566.txt.gz · Last modified: 2020/08/16 12:39 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki