<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Hey, Scripting Guy! How can I use Windows PowerShell to Search a Text File for multiple strings?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/06/29/hey-scripting-guy-how-can-i-use-windows-powershell-to-search-a-text-file-for-multiple-strings.aspx</link><description>Q: Hey Scripting Guy! I need help migrating a script from VBScript to Windows PowerShell 2.0. The VBScript is one that I based upon an old Hey Scripting Guy! article. I use it to search a text file for specific words. If the words are found, the script</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Hey, Scripting Guy! How can I use Windows PowerShell to Search a Text File for multiple strings?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/06/29/hey-scripting-guy-how-can-i-use-windows-powershell-to-search-a-text-file-for-multiple-strings.aspx#3341071</link><pubDate>Tue, 29 Jun 2010 14:48:27 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3341071</guid><dc:creator>@realdealbiehl</dc:creator><description>&lt;p&gt;I like using select string to search all the files in a given directory, and give me the name of the file it&amp;#39;s in and the line number:&lt;/p&gt;
&lt;p&gt;select-string -pattern &amp;quot;Get-Date&amp;quot; -path *.* | foreach-Object{Write-Host $_.FileName, $_.linenumber}&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3341071" width="1" height="1"&gt;</description></item></channel></rss>