<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://powershell.com/cs/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>PowerShell for Windows</title><link>http://powershell.com/cs/forums/200.aspx</link><description>Moderated by PowerShell MVP &lt;a href="http://powershell.com/cs/content/experts.aspx#tobias-weltner"&gt;Dr. Tobias Weltner&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 (Build: 30929.2835)</generator><item><title>Re: Extract text and numeric values from a text file</title><link>http://powershell.com/cs/forums/thread/16448.aspx</link><pubDate>Wed, 09 May 2012 00:55:39 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:16448</guid><dc:creator>Felipe</dc:creator><slash:comments>0</slash:comments><comments>http://powershell.com/cs/forums/thread/16448.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=200&amp;PostID=16448</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m getting all the values.. So if we use the file in your first post as en example I would get the output of:&lt;/p&gt;
&lt;p&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;br /&gt;----&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -----&lt;br /&gt;&amp;quot;Profile Name&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;Test Backup - 1&amp;quot;&lt;br /&gt;&amp;quot;Deleted&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;2&amp;quot;&lt;br /&gt;&amp;quot;Skipped&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;4&amp;quot;&lt;br /&gt;&amp;quot;Copied&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;2&amp;quot;&lt;br /&gt;&amp;quot;Copied/Moved&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;0.07KBytes&amp;quot;&lt;br /&gt;&amp;quot;Profile End Time&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;4/30/2012 10:47:10 AM&amp;quot;&lt;br /&gt;&amp;quot;Result&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;Success&amp;quot;&lt;/p&gt;
&lt;p&gt;If you want to get each iteration then use:&lt;/p&gt;
&lt;p&gt;&lt;blockquote style="overflow-x: scroll;"&gt;&lt;pre style="margin: 0px;"&gt;&lt;/p&gt;
&lt;p&gt;$TableTemp += @{$line.split(&amp;quot;,&amp;quot;)[2]=$line.split(&amp;quot;,&amp;quot;)[3]}&lt;/p&gt;
&lt;p&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;/p&gt;
&lt;p&gt;or if outputting to a file:&lt;/p&gt;
&lt;p&gt;&lt;blockquote style="overflow-x: scroll;"&gt;&lt;pre style="margin: 0px;"&gt;&lt;/p&gt;
&lt;p&gt;Out-File -append&amp;nbsp;&amp;quot;C:\Scripts\Logs\Test\Test.txt&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Extract text and numeric values from a text file</title><link>http://powershell.com/cs/forums/thread/16439.aspx</link><pubDate>Tue, 08 May 2012 16:27:29 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:16439</guid><dc:creator>PLeskov</dc:creator><slash:comments>0</slash:comments><comments>http://powershell.com/cs/forums/thread/16439.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=200&amp;PostID=16439</wfw:commentRss><description>&lt;p&gt;Well, answering my own question, I came across some functions that enable converting hush table to objects and do all kind of formatting. Now Im still having a problem using foreach loop with the hash table.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;foreach ($line in (Get-Content &amp;quot;C:\Scripts\Logs\Test\Test Backup One_Log_Page1.txt&amp;quot;)) {&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;if($line -match &amp;quot;Profile Name&amp;quot; -or $line -match &amp;quot;Deleted&amp;quot; -or $line -match &amp;quot;Skipped&amp;quot; -or $line -match &amp;quot;Copied&amp;quot; `&lt;br /&gt;&amp;nbsp;-or $line -match &amp;quot;Copied/Moved&amp;quot;&amp;nbsp; -or $line -match &amp;quot;Profile End Time&amp;quot; -or $line -match &amp;quot;Result&amp;quot;){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;$TableTemp = @{$line.split(&amp;quot;,&amp;quot;)[2]=$line.split(&amp;quot;,&amp;quot;)[3]} # even if I output to a file | Out-File &amp;quot;C:\Scripts\Logs\Test\Test.txt&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;# I still get only one value &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;$TableTemp&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;When I output the results into the $TableTemp = @{$line.split(&amp;quot;,&amp;quot;)[2]=$line.split(&amp;quot;,&amp;quot;)[3]} it saves all the values fine. When I read the hash It only has one value. I&amp;#39;ve read that those just a reference values and you can&amp;#39;t work with them directly. How do I save the results of the foreach loop in the hash so&amp;nbsp;they can be accessed later? Any&amp;nbsp;input would be appreciated!&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Extract text and numeric values from a text file</title><link>http://powershell.com/cs/forums/thread/16347.aspx</link><pubDate>Thu, 03 May 2012 16:28:30 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:16347</guid><dc:creator>PLeskov</dc:creator><slash:comments>0</slash:comments><comments>http://powershell.com/cs/forums/thread/16347.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=200&amp;PostID=16347</wfw:commentRss><description>&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;With a slight adjustment it&amp;nbsp;works great!&lt;/p&gt;
&lt;p&gt;foreach($line in (Get-Content $logfile)){&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;if($line -match &amp;quot;Profile Name&amp;quot; -or $line -match &amp;quot;Deleted&amp;quot; -or $line -match &amp;quot;Skipped&amp;quot; -or $line -match &amp;quot;Copied&amp;quot; -or $line -match &amp;quot;Copied/Moved&amp;quot;&amp;nbsp; -or $line -match &amp;quot;Profile End Time&amp;quot; -or $line -match &amp;quot;Result&amp;quot;){&lt;/p&gt;
&lt;p&gt;$table = @{$line.split(&amp;quot;,&amp;quot;)[2]=$line.split(&amp;quot;,&amp;quot;)[3]}&lt;br /&gt;$table&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Now how do I output only the values of the array to a text file and&amp;nbsp;omit the Array names?. I also need&amp;nbsp;the Values&amp;nbsp;list to&amp;nbsp;be converted to a table. That way when the Values from the rest of the log files&amp;nbsp;are added,&amp;nbsp;the output will be&amp;nbsp;much more&amp;nbsp;readable. Any ideas on how to do that?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Paul&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Extract text and numeric values from a text file</title><link>http://powershell.com/cs/forums/thread/16316.aspx</link><pubDate>Wed, 02 May 2012 10:44:18 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:16316</guid><dc:creator>Felipe</dc:creator><slash:comments>0</slash:comments><comments>http://powershell.com/cs/forums/thread/16316.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=200&amp;PostID=16316</wfw:commentRss><description>&lt;p&gt;You can do something like:&lt;/p&gt;
&lt;p&gt;&lt;blockquote style="overflow-x: scroll;"&gt;&lt;pre style="margin: 0px;"&gt;&lt;/p&gt;
&lt;p&gt;foreach($line in (Get-Content &amp;quot;C:\test.txt&amp;quot;)){&lt;/p&gt;
&lt;p&gt;if($line -notmatch &amp;quot;About&amp;quot; -and $line -notmatch &amp;quot;Type&amp;quot; -and $line -notmatch &amp;quot;Scan Started&amp;quot; -and $line -notmatch &amp;quot;Scan Finished&amp;quot; -and $line -notmatch &amp;quot;Profile Start Time&amp;quot;){&lt;/p&gt;
&lt;p&gt;$table = @{$line.split(&amp;quot;,&amp;quot;)[2]=$line.split(&amp;quot;,&amp;quot;)[3]}&lt;br /&gt;$table&lt;br /&gt;}}&lt;/p&gt;
&lt;p&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Extract text and numeric values from a text file</title><link>http://powershell.com/cs/forums/thread/16310.aspx</link><pubDate>Tue, 01 May 2012 20:15:58 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:16310</guid><dc:creator>Felipe</dc:creator><slash:comments>0</slash:comments><comments>http://powershell.com/cs/forums/thread/16310.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=200&amp;PostID=16310</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t do anything more elaborated now because I&amp;#39;m away from a computer but you can put a if condition to exclude the properties you don&amp;#39;t want.&lt;/p&gt;
&lt;p&gt;For what I can see there aren&amp;#39;t many.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Extract text and numeric values from a text file</title><link>http://powershell.com/cs/forums/thread/16303.aspx</link><pubDate>Tue, 01 May 2012 13:15:11 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:16303</guid><dc:creator>PLeskov</dc:creator><slash:comments>0</slash:comments><comments>http://powershell.com/cs/forums/thread/16303.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=200&amp;PostID=16303</wfw:commentRss><description>&lt;p&gt;Hi Felipe,&lt;/p&gt;
&lt;p&gt;Your solution works but it solves only&amp;nbsp;part of the problem. I still need to filter the data and extract only those specific values. I&amp;nbsp;got 59 log files&amp;nbsp;with&amp;nbsp;couple of thousands lines in some of them. My goal is to extract&amp;nbsp;only the valuable backup&amp;nbsp;data and output it&amp;nbsp;in a single file formatted as a table.&amp;nbsp;Something like this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Profile Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Deleted&amp;nbsp; Skipped&amp;nbsp; Copied&amp;nbsp; Copied/Moved&amp;nbsp;&amp;nbsp;&amp;nbsp; Profile End Time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Result&lt;/p&gt;
&lt;p&gt;Test Backup&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 44&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 35.8MB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4/30/2012 1:41:13 PM&amp;nbsp;&amp;nbsp;&amp;nbsp; Success&lt;br /&gt;Mirror Noon&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 356&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;288&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;25&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;56.5MB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4/30/2012 1:450:13 PM&amp;nbsp;&amp;nbsp; Success &lt;br /&gt;Mirror Exchange&lt;br /&gt;Mirro Daily&lt;br /&gt;....&lt;br /&gt;.....&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Extract text and numeric values from a text file</title><link>http://powershell.com/cs/forums/thread/16301.aspx</link><pubDate>Tue, 01 May 2012 07:52:59 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:16301</guid><dc:creator>Felipe</dc:creator><slash:comments>0</slash:comments><comments>http://powershell.com/cs/forums/thread/16301.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=200&amp;PostID=16301</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You&amp;nbsp;don&amp;#39;t need regular expressions for that.&lt;/p&gt;
&lt;p&gt;&lt;blockquote style="overflow-x: scroll;"&gt;&lt;pre style="margin: 0px;"&gt;&lt;/p&gt;
&lt;p&gt;foreach($line in (Get-Content $file)){&lt;/p&gt;
&lt;p&gt;$line.split(&amp;quot;,&amp;quot;)[3]}&lt;/p&gt;
&lt;p&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Extract text and numeric values from a text file</title><link>http://powershell.com/cs/forums/thread/16293.aspx</link><pubDate>Mon, 30 Apr 2012 17:00:48 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:16293</guid><dc:creator>PLeskov</dc:creator><slash:comments>0</slash:comments><comments>http://powershell.com/cs/forums/thread/16293.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=200&amp;PostID=16293</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;I&amp;rsquo;m new to powershell regular expressions and have a question on how to write one that would &lt;/span&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;extract text and numeric values from .txt log files. Here is a sample of the log file.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;Note: There are no spaces between the string lines in the original file:&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&amp;quot;4/30/2012 10:47:03 AM&amp;quot;,&amp;quot;1&amp;quot;,&amp;quot;About&amp;quot;,&amp;quot;SyncBackPro V6.0.12.0 Log&amp;quot;,0,&amp;quot;O&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&amp;quot;4/30/2012 10:47:03 AM&amp;quot;,&amp;quot;1&amp;quot;,&amp;quot;Profile Name&lt;span style="background:yellow;mso-highlight:yellow;"&gt;&amp;quot;,&amp;quot;Test Backup - 1&amp;quot;,&lt;/span&gt;0,&amp;quot;O&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&amp;quot;4/30/2012 10:47:03 AM&amp;quot;,&amp;quot;1&amp;quot;,&amp;quot;Type&amp;quot;,&amp;quot;Mirror Right&amp;quot;,0,&amp;quot;O&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&amp;quot;4/30/2012 10:47:10 AM&amp;quot;,&amp;quot;1&amp;quot;,&amp;quot;Deleted&amp;quot;,&lt;span style="background:yellow;mso-highlight:yellow;"&gt;&amp;quot;2&amp;quot;,&lt;/span&gt;0,&amp;quot;O&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&amp;quot;4/30/2012 10:47:10 AM&amp;quot;,&amp;quot;1&amp;quot;,&amp;quot;Skipped&amp;quot;,&lt;span style="background:yellow;mso-highlight:yellow;"&gt;&amp;quot;4&amp;quot;,&lt;/span&gt;0,&amp;quot;O&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&amp;quot;4/30/2012 10:47:10 AM&amp;quot;,&amp;quot;1&amp;quot;,&amp;quot;Copied&amp;quot;,&lt;span style="background:yellow;mso-highlight:yellow;"&gt;&amp;quot;2&amp;quot;,&lt;/span&gt;0,&amp;quot;O&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&amp;quot;4/30/2012 10:47:10 AM&amp;quot;,&amp;quot;1&amp;quot;,&amp;quot;Copied/Moved&amp;quot;,&amp;quot;&lt;span style="background:yellow;mso-highlight:yellow;"&gt;0.07KBytes&amp;quot;,&lt;/span&gt;0,&amp;quot;O&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&amp;quot;4/30/2012 10:47:10 AM&amp;quot;,&amp;quot;1&amp;quot;,&amp;quot;Scan Started&amp;quot;,&amp;quot;4/30/2012 10:47:04 AM&amp;quot;,0,&amp;quot;O&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&amp;quot;4/30/2012 10:47:10 AM&amp;quot;,&amp;quot;1&amp;quot;,&amp;quot;Scan Finished&amp;quot;,&amp;quot;4/30/2012 10:47:04 AM&amp;quot;,0,&amp;quot;O&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&amp;quot;4/30/2012 10:47:10 AM&amp;quot;,&amp;quot;1&amp;quot;,&amp;quot;Profile Start Time&amp;quot;,&amp;quot;4/30/2012 10:47:03 AM&amp;quot;,0,&amp;quot;O&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&amp;quot;4/30/2012 10:47:10 AM&amp;quot;,&amp;quot;1&amp;quot;,&amp;quot;Profile End Time&amp;quot;,&lt;span style="background:yellow;mso-highlight:yellow;"&gt;&amp;quot;4/30/2012 10:47:10 AM&amp;quot;,&lt;/span&gt;0,&amp;quot;O&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&amp;quot;4/30/2012 10:47:10 AM&amp;quot;,&amp;quot;1&amp;quot;,&amp;quot;Result&amp;quot;,&lt;span style="background:yellow;mso-highlight:yellow;"&gt;&amp;quot;Success&amp;quot;,&lt;/span&gt;0,&amp;quot;O&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;So far I was able to extract just the lines of text that are of importance and output them into a single file.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;Get-Content $file | Select-String -pattern &amp;quot;Profile Name&amp;quot;, &amp;quot;Deleted&amp;quot;, &amp;quot;Skipped&amp;quot;, &amp;quot;Copied&amp;quot;, &amp;quot;Copied/Moved&amp;quot;, &amp;quot;Profile End Time&amp;quot;, &amp;quot;Result&amp;quot; | Out-File $logpath -encoding ASCII -append&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;## part of the script&amp;#39;s function.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;To make the summary report look more readable&amp;nbsp;I need to extract &lt;strong&gt;just the values&lt;/strong&gt; that follow those pre-define text&amp;nbsp;patterns.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;I only need the values that are highlighted. They follow certain text patterns &lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;that don&amp;rsquo;t change: &amp;ldquo;Profile Name&amp;rdquo;, &amp;quot;Deleted&amp;quot;, &amp;quot;Skipped&amp;quot;, &amp;quot;Copied&amp;quot;, &lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;&amp;quot;Copied/Moved&amp;quot;, &amp;quot;Profile End Time&amp;quot;, &amp;quot;Result&amp;quot; . The numeric values that follows &amp;quot;Deleted&amp;quot;, &amp;quot;Skipped&amp;quot;, &amp;quot;Copied&amp;quot; or &amp;quot;Copied/Moved&amp;quot; could be any number in 0 - 50,000 range.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;Please help!&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;Paul Leskov&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>