<?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: How To Parse Text Files Line by Line in Unix scripts</title>
	<atom:link href="http://www.unixtutorial.org/2008/08/how-to-parse-text-files-line-by-line-in-unix-scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.unixtutorial.org/2008/08/how-to-parse-text-files-line-by-line-in-unix-scripts/</link>
	<description>Learn UNIX</description>
	<lastBuildDate>Sun, 29 Aug 2010 16:01:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: ming</title>
		<link>http://www.unixtutorial.org/2008/08/how-to-parse-text-files-line-by-line-in-unix-scripts/comment-page-1/#comment-5871</link>
		<dc:creator>ming</dc:creator>
		<pubDate>Mon, 24 Aug 2009 04:46:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.unixtutorial.org/?p=62#comment-5871</guid>
		<description>why not use read line
for example
cat aFile&#124; while read line; do echo $line; done</description>
		<content:encoded><![CDATA[<p>why not use read line<br />
for example<br />
cat aFile| while read line; do echo $line; done</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zenith191</title>
		<link>http://www.unixtutorial.org/2008/08/how-to-parse-text-files-line-by-line-in-unix-scripts/comment-page-1/#comment-5706</link>
		<dc:creator>zenith191</dc:creator>
		<pubDate>Tue, 04 Aug 2009 16:17:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.unixtutorial.org/?p=62#comment-5706</guid>
		<description>One problem with Nails solution is that it removes leading whitespace. This causes loss of indentation.</description>
		<content:encoded><![CDATA[<p>One problem with Nails solution is that it removes leading whitespace. This causes loss of indentation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gleb Reys</title>
		<link>http://www.unixtutorial.org/2008/08/how-to-parse-text-files-line-by-line-in-unix-scripts/comment-page-1/#comment-854</link>
		<dc:creator>Gleb Reys</dc:creator>
		<pubDate>Fri, 12 Sep 2008 23:16:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.unixtutorial.org/?p=62#comment-854</guid>
		<description>Nails, thanks for finding the courage to speak up! I&#039;m glad you recognize the thinking pattern I&#039;ve followed (trying to cat a file and expecting a line at a time)!

I&#039;m glad you brought the `cat $1` part up too, not only should it be `cat $FILE` in my particular example, but I have never heard about the UUOC,  so look forward to reading a whole page about it.

THANK YOU and please comment on anything else in the future - like I said somewhere, I&#039;m not trying to look all-knowing, and I welcome any opportunity to learn and improve myself.</description>
		<content:encoded><![CDATA[<p>Nails, thanks for finding the courage to speak up! I'm glad you recognize the thinking pattern I've followed (trying to cat a file and expecting a line at a time)!</p>
<p>I'm glad you brought the `cat $1` part up too, not only should it be `cat $FILE` in my particular example, but I have never heard about the UUOC,  so look forward to reading a whole page about it.</p>
<p>THANK YOU and please comment on anything else in the future &#8211; like I said somewhere, I'm not trying to look all-knowing, and I welcome any opportunity to learn and improve myself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nails Carmody</title>
		<link>http://www.unixtutorial.org/2008/08/how-to-parse-text-files-line-by-line-in-unix-scripts/comment-page-1/#comment-853</link>
		<dc:creator>Nails Carmody</dc:creator>
		<pubDate>Fri, 12 Sep 2008 22:38:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.unixtutorial.org/?p=62#comment-853</guid>
		<description>I don&#039;t mean to be rude of condescending, but you are trying to solve a problem that doesn&#039;t exist.  While your UNIQUE variable idea is clever, why don&#039;t you just use while loop:

while read LINE
do
   echo &quot;$LINE&quot;
done &lt; /etc/redhat-release

Also, your `cat $1` is often referred to as a UUOC.  I found this link to be very instructional:

http://partmaps.org/era/unix/award.html

Sorry I had to disagree with you.

Regards,


Nails</description>
		<content:encoded><![CDATA[<p>I don't mean to be rude of condescending, but you are trying to solve a problem that doesn't exist.  While your UNIQUE variable idea is clever, why don't you just use while loop:</p>
<p>while read LINE<br />
do<br />
   echo "$LINE"<br />
done &lt; /etc/redhat-release</p>
<p>Also, your `cat $1` is often referred to as a UUOC.  I found this link to be very instructional:</p>
<p><a href="http://partmaps.org/era/unix/award.html" rel="nofollow">http://partmaps.org/era/unix/award.html</a></p>
<p>Sorry I had to disagree with you.</p>
<p>Regards,</p>
<p>Nails</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gleb Reys</title>
		<link>http://www.unixtutorial.org/2008/08/how-to-parse-text-files-line-by-line-in-unix-scripts/comment-page-1/#comment-831</link>
		<dc:creator>Gleb Reys</dc:creator>
		<pubDate>Mon, 08 Sep 2008 10:29:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.unixtutorial.org/?p=62#comment-831</guid>
		<description>I wish I thought about this a few years earlier - so many scripts of mine could be much better!</description>
		<content:encoded><![CDATA[<p>I wish I thought about this a few years earlier &#8211; so many scripts of mine could be much better!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: n00b</title>
		<link>http://www.unixtutorial.org/2008/08/how-to-parse-text-files-line-by-line-in-unix-scripts/comment-page-1/#comment-830</link>
		<dc:creator>n00b</dc:creator>
		<pubDate>Mon, 08 Sep 2008 10:19:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.unixtutorial.org/?p=62#comment-830</guid>
		<description>Just what I was looking for! Thanks!</description>
		<content:encoded><![CDATA[<p>Just what I was looking for! Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
