How to filter a character stream from an application using PowerShell?

Posted by Christian on Stack Overflow See other posts from Stack Overflow or by Christian
Published on 2010-06-08T19:54:18Z Indexed on 2010/06/10 0:22 UTC
Read the original article Hit count: 569

Filed under:

A powershell question: I want to extract each line in a character stream produced by an application that matches a certain pattern which in pseudo-code would be something like this: PS> <a_ps_command> <the_application_command_for_outputting_the_text_stream> | <my_filter > output_file.txt

In my case the application is a CM-tool that outputs the change history of a source file and the (psuedo)pattern should be something like: <a couple of numbers><a name><a time stamp><a line of characters>

Cheers, Christian

© Stack Overflow or respective owner

Related posts about powershell