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 specific line using sed command 2

comment specific line using sed command

Comment specific line using sed command can be used to configuration files …