Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

extract text from a line using power shell

$
0
0

I'm beginner, exploring options in powershell.

File with the following info:

Line 1: 22-Aug-2014 : Entry 1.Info : Alex : here it says "Hello World" ok?

Line 2: 24-Aug-2014 : Entry 1.Info : Micheal : here it says "Welcome to my world"

Line 3: 24-Aug-2014 : Entry 1.Info : Alex : here it say "Remember? i said Hello world", done.

Search through the file and only extract specific info related to Alex

Alex: Hello World

Alex: Remember? i said Hello world

Any suggestions to achieve this output using powershell?



Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>