<?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>Sat, 21 Nov 2009 16:14:40 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: sg1973</title>
		<link>http://www.tech-recipes.com/rx/67/remove-blank-lines-from-a-file-using-grep/comment-page-1/#comment-16443</link>
		<dc:creator>sg1973</dc:creator>
		<pubDate>Thu, 19 Nov 2009 18:35:04 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-16443</guid>
		<description>thanks</description>
		<content:encoded><![CDATA[<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bryansenter</title>
		<link>http://www.tech-recipes.com/rx/67/remove-blank-lines-from-a-file-using-grep/comment-page-1/#comment-14382</link>
		<dc:creator>bryansenter</dc:creator>
		<pubDate>Wed, 19 Aug 2009 13:44:37 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-14382</guid>
		<description>Include blank lines that aren&#039;t really blank (tabs, spaces, CRLF, etc)&lt;br&gt;&lt;br&gt;grep -vc &#039;^[[:space:]]*$&#039;</description>
		<content:encoded><![CDATA[<p>Include blank lines that aren&#39;t really blank (tabs, spaces, CRLF, etc)</p>
<p>grep -vc &#39;^[[:space:]]*$&#39;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sivapitchai</title>
		<link>http://www.tech-recipes.com/rx/67/remove-blank-lines-from-a-file-using-grep/comment-page-1/#comment-14085</link>
		<dc:creator>sivapitchai</dc:creator>
		<pubDate>Fri, 07 Aug 2009 20:22:49 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-14085</guid>
		<description>Have you tried the above commans...?</description>
		<content:encoded><![CDATA[<p>Have you tried the above commans&#8230;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luis </title>
		<link>http://www.tech-recipes.com/rx/67/remove-blank-lines-from-a-file-using-grep/comment-page-1/#comment-9427</link>
		<dc:creator>Luis </dc:creator>
		<pubDate>Fri, 13 Mar 2009 18:46:04 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-9427</guid>
		<description>awsome</description>
		<content:encoded><![CDATA[<p>awsome</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jadu Saikia</title>
		<link>http://www.tech-recipes.com/rx/67/remove-blank-lines-from-a-file-using-grep/comment-page-1/#comment-7069</link>
		<dc:creator>Jadu Saikia</dc:creator>
		<pubDate>Wed, 07 Jan 2009 08:01:31 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-7069</guid>
		<description>All ways together, :-)&lt;br&gt;&lt;br&gt;$ grep -v &#039;^$&#039; file&lt;br&gt;$ grep &#039;.&#039; file&lt;br&gt;$ sed &#039;/^$/d&#039; file&lt;br&gt;$ sed -n &#039;/^$/!p&#039; file&lt;br&gt;$ awk NF file&lt;br&gt;$ awk &#039;/./&#039; file&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://unstableme.blogspot.com&quot; rel=&quot;nofollow&quot;&gt;unstableme.blogspot.com&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>All ways together, :-)</p>
<p>$ grep -v &#39;^$&#39; file<br />$ grep &#39;.&#39; file<br />$ sed &#39;/^$/d&#39; file<br />$ sed -n &#39;/^$/!p&#39; file<br />$ awk NF file<br />$ awk &#39;/./&#39; file</p>
<p><a href="http://unstableme.blogspot.com" rel="nofollow">unstableme.blogspot.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: </title>
		<link>http://www.tech-recipes.com/rx/67/remove-blank-lines-from-a-file-using-grep/comment-page-1/#comment-3648</link>
		<dc:creator></dc:creator>
		<pubDate>Mon, 23 Jun 2008 03:55:49 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-3648</guid>
		<description>The easiest way to remove blank lines from a file is to use a sed statement. The following syntax removes the blank lines.

# cat my_file &#124; sed /^$/d</description>
		<content:encoded><![CDATA[<p>The easiest way to remove blank lines from a file is to use a sed statement. The following syntax removes the blank lines.</p>
<p># cat my_file | sed /^$/d</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: </title>
		<link>http://www.tech-recipes.com/rx/67/remove-blank-lines-from-a-file-using-grep/comment-page-1/#comment-3560</link>
		<dc:creator></dc:creator>
		<pubDate>Wed, 23 Jan 2008 03:17:56 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-3560</guid>
		<description>This wasn&#039;t working for me using Cygwin, then I realised that the file I was looking at had Windows line endings.  There are any number of solutions to this, but the one I chose was to pipe through tr -d &quot;r&quot; before piping through grep.  Then it worked like a charm.  -- Richie Hindle, richie@&lt;a href=&quot;http://entrian.com/&quot;&gt;entrian.com&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>This wasn&#8217;t working for me using Cygwin, then I realised that the file I was looking at had Windows line endings.  There are any number of solutions to this, but the one I chose was to pipe through tr -d &#8220;r&#8221; before piping through grep.  Then it worked like a charm.  &#8212; Richie Hindle, richie@<a href="http://entrian.com/">entrian.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: </title>
		<link>http://www.tech-recipes.com/rx/67/remove-blank-lines-from-a-file-using-grep/comment-page-1/#comment-538</link>
		<dc:creator></dc:creator>
		<pubDate>Fri, 03 Sep 2004 04:08:08 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-538</guid>
		<description>.. or, quicker, grep . &lt;filename&gt;</description>
		<content:encoded><![CDATA[<p>.. or, quicker, grep . &lt;filename&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: raxxal</title>
		<link>http://www.tech-recipes.com/rx/67/remove-blank-lines-from-a-file-using-grep/comment-page-1/#comment-180</link>
		<dc:creator>raxxal</dc:creator>
		<pubDate>Thu, 13 May 2004 12:02:13 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-180</guid>
		<description>By the way, if you want to see the $ sign, in vi  enter  :set list
also, in cat do the following: cat -vet

Raxxal</description>
		<content:encoded><![CDATA[<p>By the way, if you want to see the $ sign, in vi  enter  :set list<br />
also, in cat do the following: cat -vet</p>
<p>Raxxal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: qmchenry</title>
		<link>http://www.tech-recipes.com/rx/67/remove-blank-lines-from-a-file-using-grep/comment-page-1/#comment-34</link>
		<dc:creator>qmchenry</dc:creator>
		<pubDate>Tue, 25 Nov 2003 06:31:59 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-34</guid>
		<description>Great catch!  You are absolutely correct.  The recipe has been repaired.  Thank you for helping to improve Tech-Recipes.

Quinn</description>
		<content:encoded><![CDATA[<p>Great catch!  You are absolutely correct.  The recipe has been repaired.  Thank you for helping to improve Tech-Recipes.</p>
<p>Quinn</p>
]]></content:encoded>
	</item>
</channel>
</rss>
