Jun 01 2017

Extract lines with different expressions from text files

Category: text parsingadmin @ 6:15 pm

Here is the Linux command to extract lines that contain more than one expression

The example below will only extract lines that contain “Source:” and “CustomEvent:”  in file MyLogFile.log

egrep "Source:|CustomEvent:" MyLogFile.log


Leave a Reply

*
= 4 + 6