<?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: Parsing quoted CSV files with perl</title>
	<atom:link href="http://blog.joeware.net/2008/04/02/1141/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.joeware.net/2008/04/02/1141/</link>
	<description>Information about joeware mixed with wild and crazy opinions...</description>
	<lastBuildDate>Thu, 08 Jul 2010 18:21:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Brandon</title>
		<link>http://blog.joeware.net/2008/04/02/1141/comment-page-1/#comment-36225</link>
		<dc:creator>Brandon</dc:creator>
		<pubDate>Fri, 04 Apr 2008 19:00:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joeware.net/2008/04/02/1141/#comment-36225</guid>
		<description>Still easier than perl though :)</description>
		<content:encoded><![CDATA[<p>Still easier than perl though <img src='http://blog.joeware.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon</title>
		<link>http://blog.joeware.net/2008/04/02/1141/comment-page-1/#comment-36224</link>
		<dc:creator>Brandon</dc:creator>
		<pubDate>Fri, 04 Apr 2008 18:58:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joeware.net/2008/04/02/1141/#comment-36224</guid>
		<description>I agree... I will tell the Product Group.</description>
		<content:encoded><![CDATA[<p>I agree&#8230; I will tell the Product Group.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joe</title>
		<link>http://blog.joeware.net/2008/04/02/1141/comment-page-1/#comment-36213</link>
		<dc:creator>joe</dc:creator>
		<pubDate>Fri, 04 Apr 2008 14:37:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joeware.net/2008/04/02/1141/#comment-36213</guid>
		<description>I understand what the quotes are for... It either shouldn&#039;t be stripping them or there should be a simple way of saying, yeah, don&#039;t strip the quotes IMO. Flexibilty...

For example if I wanted to strip the quotes in my script, I change the second param to parse_words from 1 to 0.</description>
		<content:encoded><![CDATA[<p>I understand what the quotes are for&#8230; It either shouldn&#8217;t be stripping them or there should be a simple way of saying, yeah, don&#8217;t strip the quotes IMO. Flexibilty&#8230;</p>
<p>For example if I wanted to strip the quotes in my script, I change the second param to parse_words from 1 to 0.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon</title>
		<link>http://blog.joeware.net/2008/04/02/1141/comment-page-1/#comment-36168</link>
		<dc:creator>Brandon</dc:creator>
		<pubDate>Thu, 03 Apr 2008 12:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joeware.net/2008/04/02/1141/#comment-36168</guid>
		<description>If you need the quotes. You can use calculated properties to add them back. Import-Csv strips them (it uses quotes to deal with values that may have &quot;,&quot; in them)

import-csv joetest.csv &#124;  fl @{l=&#039;description&#039;;e={&quot;`&quot;{0}`&quot;&quot; -f $_.description}},
                             @{l=&#039;dn&#039;;e={&quot;`&quot;{0}`&quot;&quot; -f $_.dn}},
                             @{l=&#039;gplink&#039;;e={&quot;`&quot;{0}`&quot;&quot; -f $_.gplink}},
                             @{l=&#039;name&#039;;e={&quot;`&quot;{0}`&quot;&quot; -f $_.name}},
                             @{l=&#039;objectclass&#039;;e={&quot;`&quot;{0}`&quot;&quot; -f $_.objectclass}}</description>
		<content:encoded><![CDATA[<p>If you need the quotes. You can use calculated properties to add them back. Import-Csv strips them (it uses quotes to deal with values that may have &#8220;,&#8221; in them)</p>
<p>import-csv joetest.csv |  fl @{l=&#8217;description&#8217;;e={&#8220;`&#8221;{0}`&#8221;" -f $_.description}},<br />
                             @{l=&#8217;dn&#8217;;e={&#8220;`&#8221;{0}`&#8221;" -f $_.dn}},<br />
                             @{l=&#8217;gplink&#8217;;e={&#8220;`&#8221;{0}`&#8221;" -f $_.gplink}},<br />
                             @{l=&#8217;name&#8217;;e={&#8220;`&#8221;{0}`&#8221;" -f $_.name}},<br />
                             @{l=&#8217;objectclass&#8217;;e={&#8220;`&#8221;{0}`&#8221;" -f $_.objectclass}}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joe</title>
		<link>http://blog.joeware.net/2008/04/02/1141/comment-page-1/#comment-36154</link>
		<dc:creator>joe</dc:creator>
		<pubDate>Thu, 03 Apr 2008 05:00:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joeware.net/2008/04/02/1141/#comment-36154</guid>
		<description>That command doesn&#039;t seem to be working on my Windows Server 2008 Server Core machine...  ;o)

Ran it on an XP machine and it worked... but what happened to my quotes? I&#039;ve lost information, specifically with the quotes I know that OU=Users,OU=My,DC=Test,DC=loc has an invalid value for gPLink.

Colbie rocks.</description>
		<content:encoded><![CDATA[<p>That command doesn&#8217;t seem to be working on my Windows Server 2008 Server Core machine&#8230;  ;o)</p>
<p>Ran it on an XP machine and it worked&#8230; but what happened to my quotes? I&#8217;ve lost information, specifically with the quotes I know that OU=Users,OU=My,DC=Test,DC=loc has an invalid value for gPLink.</p>
<p>Colbie rocks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon</title>
		<link>http://blog.joeware.net/2008/04/02/1141/comment-page-1/#comment-36153</link>
		<dc:creator>Brandon</dc:creator>
		<pubDate>Thu, 03 Apr 2008 03:30:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joeware.net/2008/04/02/1141/#comment-36153</guid>
		<description>p.s. I LOVE COLBIE!</description>
		<content:encoded><![CDATA[<p>p.s. I LOVE COLBIE!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon</title>
		<link>http://blog.joeware.net/2008/04/02/1141/comment-page-1/#comment-36152</link>
		<dc:creator>Brandon</dc:creator>
		<pubDate>Thu, 03 Apr 2008 03:28:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joeware.net/2008/04/02/1141/#comment-36152</guid>
		<description>oh... to get the format you want

import-csv filename.csv &#124; select description,dn,gplink,name,objectclass &#124; fl</description>
		<content:encoded><![CDATA[<p>oh&#8230; to get the format you want</p>
<p>import-csv filename.csv | select description,dn,gplink,name,objectclass | fl</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon</title>
		<link>http://blog.joeware.net/2008/04/02/1141/comment-page-1/#comment-36151</link>
		<dc:creator>Brandon</dc:creator>
		<pubDate>Thu, 03 Apr 2008 03:25:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joeware.net/2008/04/02/1141/#comment-36151</guid>
		<description>Joe... you know Powershell does this all for you, right?

import-csv FileName.csv

:)</description>
		<content:encoded><![CDATA[<p>Joe&#8230; you know Powershell does this all for you, right?</p>
<p>import-csv FileName.csv</p>
<p> <img src='http://blog.joeware.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
