Archive

Archive for the ‘text parsing’ Category

Extract lines with different expressions from text files

June 1st, 2017 No comments

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


Categories: text parsing Tags: