-
Website
http://www.tech-recipes.com/ -
Original page
http://www.tech-recipes.com/rx/637/msh-extract-text-from-a-stream-with-grep-string/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
davak
83 comments · 1 points
-
danishbacker
9 comments · 1 points
-
flexinfo
11 comments · 1 points
-
bej
4 comments · 1 points
-
dimithri
5 comments · 1 points
-
-
Popular Threads
-
Windows 7: How to Prevent the Mouse from Waking your PC
8 hours ago · 1 comment
-
Outlook 2010: Turn Off Attachment Preview
1 week ago · 1 comment
-
Gmail: How to Send SMS Messages Without Using Email
2 weeks ago · 2 comments
-
Windows 7 – Prevent Live Messenger from Opening at Start Up
1 week ago · 1 comment
-
Symfony: Drop Down List Box Without Submit Button
3 weeks ago · 1 comment
-
Windows 7: How to Prevent the Mouse from Waking your PC
[C:]: dir | grep-string
'grep-string' is not recognized as a Cmdlet, function, operable program, or script file.
At line:1 char:17
+ dir | grep-string <<<<
[C:]:
Thomas
(http://tfl09.blogspot.com)
I didn't use beta 3, so I don't know if its the same, but there is now the select-string cmdlet (as of PowerShell RC1)
If it is the same, you'd probably already know about it (since you're blog has quite a bit of info on msh(PowerShell)
However, for others passing through, I thought I'd post this example:
> set-content test.txt "Hello World"
> dir *.txt|select-string ^H.*d$
test.txt:1:Hello World