<?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: Merging CSV Files with Powershell</title>
	<atom:link href="http://www.youdidwhatwithtsql.com/merging-csv-files-with-powershell/330/feed" rel="self" type="application/rss+xml" />
	<link>http://www.youdidwhatwithtsql.com/merging-csv-files-with-powershell/330</link>
	<description>making DBAs everywhere curse!</description>
	<lastBuildDate>Sat, 04 Feb 2012 06:02:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Rhys</title>
		<link>http://www.youdidwhatwithtsql.com/merging-csv-files-with-powershell/330/comment-page-1#comment-1784</link>
		<dc:creator>Rhys</dc:creator>
		<pubDate>Wed, 21 Dec 2011 21:42:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/merging-csv-files-with-powershell/330#comment-1784</guid>
		<description>Hi Steve,

Probably easy enough to test for this. Does the file contain headers or is it completely empty?

Cheers,

Rhys</description>
		<content:encoded><![CDATA[<p>Hi Steve,</p>
<p>Probably easy enough to test for this. Does the file contain headers or is it completely empty?</p>
<p>Cheers,</p>
<p>Rhys</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.youdidwhatwithtsql.com/merging-csv-files-with-powershell/330/comment-page-1#comment-1783</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 21 Dec 2011 21:22:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/merging-csv-files-with-powershell/330#comment-1783</guid>
		<description>Very nice script. It&#039;s a real time saver.

I did run into one issue, though. My source script puts data in the files, but sometimes there is no data. When the merge script runs it fails if a source file content is null.</description>
		<content:encoded><![CDATA[<p>Very nice script. It&#8217;s a real time saver.</p>
<p>I did run into one issue, though. My source script puts data in the files, but sometimes there is no data. When the merge script runs it fails if a source file content is null.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rhys</title>
		<link>http://www.youdidwhatwithtsql.com/merging-csv-files-with-powershell/330/comment-page-1#comment-1646</link>
		<dc:creator>Rhys</dc:creator>
		<pubDate>Thu, 24 Nov 2011 17:48:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/merging-csv-files-with-powershell/330#comment-1646</guid>
		<description>Hi again James,

Think we&#039;ve found a bug here. Output from a ps session...

csv file contain 3 lines each...

&lt;pre&gt;
PS C:\Users\campbellr\test&gt; ls


    Directory: C:\Users\campbellr\test


Mode                LastWriteTime     Length Name
----                -------------     ------ ----
-a---        24/11/2011     17:16         61 1.csv
-a---        24/11/2011     17:16         61 2.csv
-a---        24/11/2011     17:17         61 3.csv
-a---        24/11/2011     17:43         61 4.csv


PS C:\Users\campbellr\test&gt; cat *.csv
col1,col1,col1,col1
col1,col1,col1,col1
col1,col1,col1,col1
col2,col2,col2,col2
col2,col2,col2,col2
col2,col2,col2,col2
col3,col3,col3,col3
col3,col3,col3,col3
col3,col3,col3,col3
col4,col4,col4,col4
col4,col4,col4,col4
col4,col4,col4,col4
PS C:\Users\campbellr\test&gt; cat *.csv &gt; all.csv
PS C:\Users\campbellr\test&gt; cat *.csv
col1,col1,col1,col1
col1,col1,col1,col1
col1,col1,col1,col1
col2,col2,col2,col2
col2,col2,col2,col2
col2,col2,col2,col2
col3,col3,col3,col3
col3,col3,col3,col3
col3,col3,col3,col3
col4,col4,col4,col4
col4,col4,col4,col4
col4,col4,col4,col4
col1,col1,col1,col1
col1,col1,col1,col1
col1,col1,col1,col1
col2,col2,col2,col2
col2,col2,col2,col2
col2,col2,col2,col2
col3,col3,col3,col3
col3,col3,col3,col3
col3,col3,col3,col3
col4,col4,col4,col4
col4,col4,col4,col4
col4,col4,col4,col4
&lt;/pre&gt;

The first cat shows the file contents as expected. The line with &gt; carried on filling up all.csv until you ctrl + c it. The next cat command outputs the contents of the files onto the screen ad infinitum.</description>
		<content:encoded><![CDATA[<p>Hi again James,</p>
<p>Think we&#8217;ve found a bug here. Output from a ps session&#8230;</p>
<p>csv file contain 3 lines each&#8230;</p>
<pre>
PS C:\Users\campbellr\test> ls

    Directory: C:\Users\campbellr\test

Mode                LastWriteTime     Length Name
----                -------------     ------ ----
-a---        24/11/2011     17:16         61 1.csv
-a---        24/11/2011     17:16         61 2.csv
-a---        24/11/2011     17:17         61 3.csv
-a---        24/11/2011     17:43         61 4.csv

PS C:\Users\campbellr\test> cat *.csv
col1,col1,col1,col1
col1,col1,col1,col1
col1,col1,col1,col1
col2,col2,col2,col2
col2,col2,col2,col2
col2,col2,col2,col2
col3,col3,col3,col3
col3,col3,col3,col3
col3,col3,col3,col3
col4,col4,col4,col4
col4,col4,col4,col4
col4,col4,col4,col4
PS C:\Users\campbellr\test> cat *.csv > all.csv
PS C:\Users\campbellr\test> cat *.csv
col1,col1,col1,col1
col1,col1,col1,col1
col1,col1,col1,col1
col2,col2,col2,col2
col2,col2,col2,col2
col2,col2,col2,col2
col3,col3,col3,col3
col3,col3,col3,col3
col3,col3,col3,col3
col4,col4,col4,col4
col4,col4,col4,col4
col4,col4,col4,col4
col1,col1,col1,col1
col1,col1,col1,col1
col1,col1,col1,col1
col2,col2,col2,col2
col2,col2,col2,col2
col2,col2,col2,col2
col3,col3,col3,col3
col3,col3,col3,col3
col3,col3,col3,col3
col4,col4,col4,col4
col4,col4,col4,col4
col4,col4,col4,col4
</pre>
<p>The first cat shows the file contents as expected. The line with > carried on filling up all.csv until you ctrl + c it. The next cat command outputs the contents of the files onto the screen ad infinitum.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rhys</title>
		<link>http://www.youdidwhatwithtsql.com/merging-csv-files-with-powershell/330/comment-page-1#comment-1645</link>
		<dc:creator>Rhys</dc:creator>
		<pubDate>Thu, 24 Nov 2011 17:30:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/merging-csv-files-with-powershell/330#comment-1645</guid>
		<description>Hi James,

Cool idea but that goes into an infinite loop filling up the csv file until you stop it. Not the behavior I&#039;d expect.

Cheers,

Rhys</description>
		<content:encoded><![CDATA[<p>Hi James,</p>
<p>Cool idea but that goes into an infinite loop filling up the csv file until you stop it. Not the behavior I&#8217;d expect.</p>
<p>Cheers,</p>
<p>Rhys</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://www.youdidwhatwithtsql.com/merging-csv-files-with-powershell/330/comment-page-1#comment-1644</link>
		<dc:creator>James</dc:creator>
		<pubDate>Thu, 24 Nov 2011 13:24:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/merging-csv-files-with-powershell/330#comment-1644</guid>
		<description>how about this simple concatenate:

cd ./dir
cat *.csv &gt; all.csv</description>
		<content:encoded><![CDATA[<p>how about this simple concatenate:</p>
<p>cd ./dir<br />
cat *.csv &gt; all.csv</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Nash</title>
		<link>http://www.youdidwhatwithtsql.com/merging-csv-files-with-powershell/330/comment-page-1#comment-200</link>
		<dc:creator>John Nash</dc:creator>
		<pubDate>Mon, 21 Jun 2010 20:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/merging-csv-files-with-powershell/330#comment-200</guid>
		<description>Thanks for the tip, it worked very well.</description>
		<content:encoded><![CDATA[<p>Thanks for the tip, it worked very well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rhys</title>
		<link>http://www.youdidwhatwithtsql.com/merging-csv-files-with-powershell/330/comment-page-1#comment-146</link>
		<dc:creator>Rhys</dc:creator>
		<pubDate>Mon, 01 Mar 2010 21:29:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/merging-csv-files-with-powershell/330#comment-146</guid>
		<description>Thanks Chris. I get the same error when trying this now. Perhaps a version issue. Anyway, I&#039;ve updated the script.

Cheers,

Rhys</description>
		<content:encoded><![CDATA[<p>Thanks Chris. I get the same error when trying this now. Perhaps a version issue. Anyway, I&#8217;ve updated the script.</p>
<p>Cheers,</p>
<p>Rhys</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.youdidwhatwithtsql.com/merging-csv-files-with-powershell/330/comment-page-1#comment-145</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 01 Mar 2010 18:48:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/merging-csv-files-with-powershell/330#comment-145</guid>
		<description>Hi, I got the following error running the script:

Method invocation failed because [System.Management.Automation.PSObject] doesn&#039;t contain a method named &#039;op_Addition&#039;.

I found through another blog that &quot;$content = null&quot; needs to be changed to &quot;content = @().&quot; 

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi, I got the following error running the script:</p>
<p>Method invocation failed because [System.Management.Automation.PSObject] doesn&#8217;t contain a method named &#8216;op_Addition&#8217;.</p>
<p>I found through another blog that &#8220;$content = null&#8221; needs to be changed to &#8220;content = @().&#8221; </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

