Link Details

Link 97224 thumbnail
User 254199 avatar

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.
  • 8
  • 1
  • 956
  • 118

Comments

Add your comment
User 281687 avatar

paul_houle replied ago:

0 votes Vote down Vote up Reply

I'd like to vote it up, but 95% of the screen real estate above the fold is irrelevant junk

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (8)



Voters Against This Link (1)