<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: More Fun with Get-Content</title>
	<atom:link href="http://jdhitsolutions.com/blog/2007/02/more-fun-with-get-content/feed/" rel="self" type="application/rss+xml" />
	<link>http://jdhitsolutions.com/blog/2007/02/more-fun-with-get-content/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=more-fun-with-get-content</link>
	<description>Advice, solutions, tips and more for the lonely Windows administrator with too much to do and not enough time.</description>
	<lastBuildDate>Tue, 07 Feb 2012 16:20:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jeffery Hicks</title>
		<link>http://jdhitsolutions.com/blog/2007/02/more-fun-with-get-content/#comment-73</link>
		<dc:creator>Jeffery Hicks</dc:creator>
		<pubDate>Mon, 12 May 2008 13:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://jdhitsolutions.com/blog/2007/02/15/more-fun-with-get-content/#comment-73</guid>
		<description>dus,&lt;br/&gt;You can only use Get-Content with text files.  To work with Excel you would need to use the Excel COM object just as you would with VBScript, although with PowerShell it can be interactive. If you can save your data as a CSV you could also use the Import-CSV cmdlet.  Each line would be an object. Its properties would be the column headings.  You would use something like:&lt;br/&gt;&lt;br/&gt;import-csv mydata.csv &#124; Select myproperty</description>
		<content:encoded><![CDATA[<p>dus,<br />You can only use Get-Content with text files.  To work with Excel you would need to use the Excel COM object just as you would with VBScript, although with PowerShell it can be interactive. If you can save your data as a CSV you could also use the Import-CSV cmdlet.  Each line would be an object. Its properties would be the column headings.  You would use something like:</p>
<p>import-csv mydata.csv | Select myproperty</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dus</title>
		<link>http://jdhitsolutions.com/blog/2007/02/more-fun-with-get-content/#comment-72</link>
		<dc:creator>Dus</dc:creator>
		<pubDate>Thu, 08 May 2008 15:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://jdhitsolutions.com/blog/2007/02/15/more-fun-with-get-content/#comment-72</guid>
		<description>I have an excel document that has 7 columns and I want to get the last column of data. How do you specify which column you want get-content to pull from?</description>
		<content:encoded><![CDATA[<p>I have an excel document that has 7 columns and I want to get the last column of data. How do you specify which column you want get-content to pull from?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeffery Hicks</title>
		<link>http://jdhitsolutions.com/blog/2007/02/more-fun-with-get-content/#comment-31</link>
		<dc:creator>Jeffery Hicks</dc:creator>
		<pubDate>Fri, 16 Feb 2007 01:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://jdhitsolutions.com/blog/2007/02/15/more-fun-with-get-content/#comment-31</guid>
		<description>Here&#039;s an even more efficient function:&lt;br/&gt;Function GetTail {&lt;br/&gt;param([string]$file,[int]$lines)&lt;br/&gt;(cat $file)[-$lines..-1]&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;Thanks to Vinicius Canto for the tip.</description>
		<content:encoded><![CDATA[<p>Here&#8217;s an even more efficient function:<br />Function GetTail {<br />param([string]$file,[int]$lines)<br />(cat $file)[-$lines..-1]<br />}</p>
<p>Thanks to Vinicius Canto for the tip.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

