<?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: Remove blank lines from a file using grep</title>
	<atom:link href="http://www.tech-recipes.com/rx/67/remove-blank-lines-from-a-file-using-grep/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/67/remove-blank-lines-from-a-file-using-grep/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Thu, 09 Feb 2012 21:01:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Latthe</title>
		<link>http://www.tech-recipes.com/rx/67/remove-blank-lines-from-a-file-using-grep/comment-page-1/#comment-34078</link>
		<dc:creator>Latthe</dc:creator>
		<pubDate>Mon, 08 Aug 2011 13:48:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-34078</guid>
		<description>RDLC is worst tool</description>
		<content:encoded><![CDATA[<p>RDLC is worst tool</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Latthe</title>
		<link>http://www.tech-recipes.com/rx/67/remove-blank-lines-from-a-file-using-grep/comment-page-1/#comment-34077</link>
		<dc:creator>Latthe</dc:creator>
		<pubDate>Mon, 08 Aug 2011 13:44:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-34077</guid>
		<description>My Name is Latthe</description>
		<content:encoded><![CDATA[<p>My Name is Latthe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 2100822</title>
		<link>http://www.tech-recipes.com/rx/67/remove-blank-lines-from-a-file-using-grep/comment-page-1/#comment-48198</link>
		<dc:creator>2100822</dc:creator>
		<pubDate>Thu, 28 Apr 2011 09:34:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-48198</guid>
		<description>thank you</description>
		<content:encoded><![CDATA[<p>thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guest</title>
		<link>http://www.tech-recipes.com/rx/67/remove-blank-lines-from-a-file-using-grep/comment-page-1/#comment-47535</link>
		<dc:creator>Guest</dc:creator>
		<pubDate>Mon, 28 Mar 2011 22:36:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-47535</guid>
		<description>the problem with grep is it has a line limit (2048) lines.  If you file has more lines than that it will stop when it gets there.  I just learned a cool way to do the same thing using awk. I don&#039;t think it has the same limitations.

awk &#039;{ if (length($0) &gt; 0){ print $0 }}&#039; inputfilename &gt;&gt; outputfilename

This will search inputfilename and as long as the line has one character on it it will be sent to the outputfilename eliminating blank lines in outputfilename.</description>
		<content:encoded><![CDATA[<p>the problem with grep is it has a line limit (2048) lines.  If you file has more lines than that it will stop when it gets there.  I just learned a cool way to do the same thing using awk. I don&#8217;t think it has the same limitations.</p>
<p>awk &#8216;{ if (length($0) &gt; 0){ print $0 }}&#8217; inputfilename &gt;&gt; outputfilename</p>
<p>This will search inputfilename and as long as the line has one character on it it will be sent to the outputfilename eliminating blank lines in outputfilename.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.tech-recipes.com/rx/67/remove-blank-lines-from-a-file-using-grep/comment-page-1/#comment-47416</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 24 Mar 2011 04:04:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-47416</guid>
		<description>without the -c flag it worked for me.</description>
		<content:encoded><![CDATA[<p>without the -c flag it worked for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: colacao</title>
		<link>http://www.tech-recipes.com/rx/67/remove-blank-lines-from-a-file-using-grep/comment-page-1/#comment-46606</link>
		<dc:creator>colacao</dc:creator>
		<pubDate>Tue, 22 Feb 2011 18:36:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-46606</guid>
		<description>this is the the only one that worked for me on a file created on Windows, thanks bryansenter</description>
		<content:encoded><![CDATA[<p>this is the the only one that worked for me on a file created on Windows, thanks bryansenter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tntnt</title>
		<link>http://www.tech-recipes.com/rx/67/remove-blank-lines-from-a-file-using-grep/comment-page-1/#comment-43060</link>
		<dc:creator>Tntnt</dc:creator>
		<pubDate>Sun, 10 Oct 2010 18:45:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-43060</guid>
		<description>Thank you</description>
		<content:encoded><![CDATA[<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.tech-recipes.com/rx/67/remove-blank-lines-from-a-file-using-grep/comment-page-1/#comment-40110</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Thu, 24 Jun 2010 15:12:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-40110</guid>
		<description>add
&#124; grep -v &quot;^$&quot;
to the end of the command chain to eliminate blank lines.</description>
		<content:encoded><![CDATA[<p>add<br />
| grep -v &#8220;^$&#8221;<br />
to the end of the command chain to eliminate blank lines.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sonu</title>
		<link>http://www.tech-recipes.com/rx/67/remove-blank-lines-from-a-file-using-grep/comment-page-1/#comment-39057</link>
		<dc:creator>sonu</dc:creator>
		<pubDate>Thu, 13 May 2010 08:28:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-39057</guid>
		<description>both are corrects with sed and with grep but i have same question as anonymous </description>
		<content:encoded><![CDATA[<p>both are corrects with sed and with grep but i have same question as anonymous</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterpan</title>
		<link>http://www.tech-recipes.com/rx/67/remove-blank-lines-from-a-file-using-grep/comment-page-1/#comment-38182</link>
		<dc:creator>peterpan</dc:creator>
		<pubDate>Thu, 18 Mar 2010 07:07:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-38182</guid>
		<description>It&#039;s cool~~~~  thanks!</description>
		<content:encoded><![CDATA[<p>It&#8217;s cool~~~~  thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached (User agent is rejected)
Database Caching 2/17 queries in 1.058 seconds using memcached
Object Caching 419/423 objects using memcached

Served from: www.tech-recipes.com @ 2012-02-09 20:48:52 -->
