How to filter a character stream from an application using PowerShell?
- by Christian
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