<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Tech-Recipes - Latest Comments in msh: Extract text from a stream with grep-string | Windows Monad msh | Tech-Recipes</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><language>en</language><lastBuildDate>Sun, 30 Apr 2006 09:05:59 -0000</lastBuildDate><item><title>Re: msh: Extract text from a stream with grep-string | Windows Monad msh | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/637/msh-extract-text-from-a-stream-with-grep-string/#comment-2768608</link><description>Thomas,&lt;br&gt;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)&lt;br&gt;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)&lt;br&gt;&lt;br&gt;However, for others passing through, I thought I'd post this example:&lt;br&gt;&lt;code&gt;&lt;br&gt;&amp;gt; set-content test.txt &amp;quot;Hello World&amp;quot;&lt;br&gt;&amp;gt; dir *.txt|select-string ^H.*d$&lt;br&gt;test.txt&amp;#58;1&amp;#58;Hello World&lt;br&gt;&lt;/code&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sun, 30 Apr 2006 09:05:59 -0000</pubDate></item><item><title>Re: msh: Extract text from a stream with grep-string | Windows Monad msh | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/637/msh-extract-text-from-a-stream-with-grep-string/#comment-2768607</link><description>Sadly, it would appear that grep-string is not a part of MSH Beta 3:&lt;br&gt;&lt;code&gt;&lt;br&gt;&amp;#91;C&amp;#58;&amp;#93;&amp;#58; dir | grep-string&lt;br&gt;'grep-string' is not recognized as a Cmdlet, function, operable program, or script file.&lt;br&gt;At line&amp;#58;1 char&amp;#58;17&lt;br&gt;+ dir | grep-string &amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;br&gt;&amp;#91;C&amp;#58;&amp;#93;&amp;#58;&lt;br&gt;&lt;/code&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Thomas&lt;br&gt;(&lt;a href="http://tfl09.blogspot.com" rel="nofollow"&gt;http://tfl09.blogspot.com&lt;/a&gt;)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sat, 21 Jan 2006 23:31:38 -0000</pubDate></item><item><title>Re: msh: Extract text from a stream with grep-string | Windows Monad msh | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/637/msh-extract-text-from-a-stream-with-grep-string/#comment-2768606</link><description>I regularly (heh) use dir/s/b | findstr /f:/ /r "^my.*reg[a-z][^0-9]expr&amp;gt;" in the Windows cmd shell</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 14 Jan 2005 12:15:15 -0000</pubDate></item></channel></rss>