Delete all lines of a file containing a regex pattern using sed 1

Delete all lines of a file containing a regex pattern using sed

Delete all lines of a file containing a regex pattern using sed.

For example you can delete all commented lines of a default configuration file.

Take a look on my basic regex cheat sheet

 

 

Comment:

This site uses Akismet to reduce spam. Learn how your comment data is processed.