Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Grep a log file from specific line

$
0
0

Hi,

I working on script to analyze a log file through a script. I have to search for a specific pattern in the log file for example, a line in that log file that says: "An Error has occured".

Starting from that line, I have to get all the content till the end of the file into a variable.

Then I can process that variable to do more pattern matching stuff.

 

Can someone please help?

 

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles