By KlausG
via tellingmachine.com
Published: Jul 23 2008 / 13:43
This blog post shows a simple Powershell command that searches a log file for errors and warnings and adds the matched lines to either to the errors.txt file or to the warnings.txt files. It takes advantage of the most powerful operator in Powershell, which is the switch operator. In my example here I exported the log file from the Wonderware SMC logger.
Comments
paul_houle replied ago:
I'd like to vote it up, but 95% of the screen real estate above the fold is irrelevant junk
Voters For This Link (8)
Voters Against This Link (1)