Find and Delete log files on a linux system 1

Find and Delete log files on a linux system

Find and Delete log files on a linux system. Think before you act.

 

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

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