sed delete line with matching string

To Delete all lines containing word welcome within test.txt use -i option with sed:

sed -i '/welcome/d' test.txt
Advertisements