SED - Print - Print lines which match a regular expression

Emulates “grep”.

sed -n '/regexp/p'           # method 1
sed '/regexp/!d'             # method 2