<?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: Unix Sed Tutorial: Printing File Lines using Address and Patterns</title>
	<atom:link href="http://www.thegeekstuff.com/2009/09/unix-sed-tutorial-printing-file-lines-using-address-and-patterns/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thegeekstuff.com/2009/09/unix-sed-tutorial-printing-file-lines-using-address-and-patterns/</link>
	<description>Guides, HowTos and Tips for Technology Geeks</description>
	<lastBuildDate>Thu, 09 Feb 2012 13:04:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Rahul Prasad</title>
		<link>http://www.thegeekstuff.com/2009/09/unix-sed-tutorial-printing-file-lines-using-address-and-patterns/comment-page-1/#comment-186484</link>
		<dc:creator>Rahul Prasad</dc:creator>
		<pubDate>Sat, 28 Jan 2012 15:56:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=1959#comment-186484</guid>
		<description>i want to print the last 5 lines of a file using sed command???</description>
		<content:encoded><![CDATA[<p>i want to print the last 5 lines of a file using sed command???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Park</title>
		<link>http://www.thegeekstuff.com/2009/09/unix-sed-tutorial-printing-file-lines-using-address-and-patterns/comment-page-1/#comment-184614</link>
		<dc:creator>Park</dc:creator>
		<pubDate>Thu, 26 Jan 2012 00:15:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=1959#comment-184614</guid>
		<description>It&#039;s very helpful to understand what sed is!.</description>
		<content:encoded><![CDATA[<p>It&#8217;s very helpful to understand what sed is!.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hedy Xu</title>
		<link>http://www.thegeekstuff.com/2009/09/unix-sed-tutorial-printing-file-lines-using-address-and-patterns/comment-page-1/#comment-177004</link>
		<dc:creator>Hedy Xu</dc:creator>
		<pubDate>Thu, 12 Jan 2012 19:48:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=1959#comment-177004</guid>
		<description>I would like to subsitute the comma in the amount enclosed in double quote only and leave all the comma as it. How can I do it?R,112074121151,45891,SMITH,JOHN ,HELLEN,&quot;$1,078.67&quot;,1118.69
Thank you.
Hedy</description>
		<content:encoded><![CDATA[<p>I would like to subsitute the comma in the amount enclosed in double quote only and leave all the comma as it. How can I do it?R,112074121151,45891,SMITH,JOHN ,HELLEN,&#8221;$1,078.67&#8243;,1118.69<br />
Thank you.<br />
Hedy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bhavya</title>
		<link>http://www.thegeekstuff.com/2009/09/unix-sed-tutorial-printing-file-lines-using-address-and-patterns/comment-page-1/#comment-150675</link>
		<dc:creator>bhavya</dc:creator>
		<pubDate>Mon, 05 Dec 2011 20:05:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=1959#comment-150675</guid>
		<description>Hi,
There are some problems I am facing with linux right now.
This is what I am doing to generate a cryptographic signature fron bash script....
 
step1. I encrypt a text : encrypt(bhavyakailkhurabhavyakailkhura) and get a encrypted string sdfghjklsdfghjklzxcvbnmghjkdfghjkzxcvbnmzxc
step2. I copy that string manually from mouse no commands used and append it with a file..

$ cat textfile.txt...
user=bhavya
signature={sdfghjklsdfghjklzxcvbnmghjkdfghjkzxcvbnmzxc}

step3. Using &quot;sed&quot; on text file I send text between &quot;{&quot; and &quot;}&quot; to another file bhavya.txt
step4. now when I try to decrypt bhavya.txt it say error in reading file. I checked the text is same as encrypted. When I copy original encrypted text in step 1 and decrypt It works.

I think the problem is sed command changes spacing between text its not same as copying using mouse. Do you have any idea how we can solve this problem?

Sorry for clumsy and lengthy explanation.

Thanks</description>
		<content:encoded><![CDATA[<p>Hi,<br />
There are some problems I am facing with linux right now.<br />
This is what I am doing to generate a cryptographic signature fron bash script&#8230;.</p>
<p>step1. I encrypt a text : encrypt(bhavyakailkhurabhavyakailkhura) and get a encrypted string sdfghjklsdfghjklzxcvbnmghjkdfghjkzxcvbnmzxc<br />
step2. I copy that string manually from mouse no commands used and append it with a file..</p>
<p>$ cat textfile.txt&#8230;<br />
user=bhavya<br />
signature={sdfghjklsdfghjklzxcvbnmghjkdfghjkzxcvbnmzxc}</p>
<p>step3. Using &#8220;sed&#8221; on text file I send text between &#8220;{&#8221; and &#8220;}&#8221; to another file bhavya.txt<br />
step4. now when I try to decrypt bhavya.txt it say error in reading file. I checked the text is same as encrypted. When I copy original encrypted text in step 1 and decrypt It works.</p>
<p>I think the problem is sed command changes spacing between text its not same as copying using mouse. Do you have any idea how we can solve this problem?</p>
<p>Sorry for clumsy and lengthy explanation.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: doomhammer65ir</title>
		<link>http://www.thegeekstuff.com/2009/09/unix-sed-tutorial-printing-file-lines-using-address-and-patterns/comment-page-1/#comment-146687</link>
		<dc:creator>doomhammer65ir</dc:creator>
		<pubDate>Sun, 27 Nov 2011 21:27:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=1959#comment-146687</guid>
		<description>http://www.paste.to/MTEwNDE2</description>
		<content:encoded><![CDATA[<p><a href="http://www.paste.to/MTEwNDE2" rel="nofollow">http://www.paste.to/MTEwNDE2</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: doomhammer65ir</title>
		<link>http://www.thegeekstuff.com/2009/09/unix-sed-tutorial-printing-file-lines-using-address-and-patterns/comment-page-1/#comment-146686</link>
		<dc:creator>doomhammer65ir</dc:creator>
		<pubDate>Sun, 27 Nov 2011 21:25:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=1959#comment-146686</guid>
		<description>sorry for foolish question 
the answer is :

for ((i=1;i&gt; newfile
done

for ((i=1;i&lt;10;i++))
do
sed -n &#039;  &#039;$i&#039;  &#039;p newfile
done</description>
		<content:encoded><![CDATA[<p>sorry for foolish question<br />
the answer is :</p>
<p>for ((i=1;i&gt; newfile<br />
done</p>
<p>for ((i=1;i&lt;10;i++))<br />
do<br />
sed -n &#039;  &#039;$i&#039;  &#039;p newfile<br />
done</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: doomhammer65ir</title>
		<link>http://www.thegeekstuff.com/2009/09/unix-sed-tutorial-printing-file-lines-using-address-and-patterns/comment-page-1/#comment-145538</link>
		<dc:creator>doomhammer65ir</dc:creator>
		<pubDate>Sat, 26 Nov 2011 01:06:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=1959#comment-145538</guid>
		<description>Hi ramesh
whats wrong with this code?

&lt;pre&gt;
for ((i=1;i&lt;10;i++))
do
echo $i &gt;&gt; newfile
done

for ((i=1;i&lt;10;i++))
do
sed -n &#039;$i&#039;p newfile
done
&lt;/pre&gt;
=========
I want to use sed for printing a file line by line</description>
		<content:encoded><![CDATA[<p>Hi ramesh<br />
whats wrong with this code?</p>
<pre>
for ((i=1;i&lt;10;i++))
do
echo $i >> newfile
done

for ((i=1;i&lt;10;i++))
do
sed -n '$i'p newfile
done
</pre>
<p>=========<br />
I want to use sed for printing a file line by line</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Soundar</title>
		<link>http://www.thegeekstuff.com/2009/09/unix-sed-tutorial-printing-file-lines-using-address-and-patterns/comment-page-1/#comment-143379</link>
		<dc:creator>Soundar</dc:creator>
		<pubDate>Tue, 22 Nov 2011 03:16:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=1959#comment-143379</guid>
		<description>It&#039;s helping a lot ......thank uuuuuuuuuuuuuu</description>
		<content:encoded><![CDATA[<p>It&#8217;s helping a lot &#8230;&#8230;thank uuuuuuuuuuuuuu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrii</title>
		<link>http://www.thegeekstuff.com/2009/09/unix-sed-tutorial-printing-file-lines-using-address-and-patterns/comment-page-1/#comment-134792</link>
		<dc:creator>Andrii</dc:creator>
		<pubDate>Mon, 24 Oct 2011 19:29:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=1959#comment-134792</guid>
		<description>How to find last 10 lines if I don&#039;t know size of file?</description>
		<content:encoded><![CDATA[<p>How to find last 10 lines if I don&#8217;t know size of file?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aniketh</title>
		<link>http://www.thegeekstuff.com/2009/09/unix-sed-tutorial-printing-file-lines-using-address-and-patterns/comment-page-1/#comment-71769</link>
		<dc:creator>aniketh</dc:creator>
		<pubDate>Sat, 04 Dec 2010 16:07:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=1959#comment-71769</guid>
		<description>In an organisation one wants to know how many programmers are there. The employee data is stored in a file called ‘personnel’ with one record per employee. Every record has field for designation.  How can sed be used to print only the records of all employees who are programmers ?</description>
		<content:encoded><![CDATA[<p>In an organisation one wants to know how many programmers are there. The employee data is stored in a file called ‘personnel’ with one record per employee. Every record has field for designation.  How can sed be used to print only the records of all employees who are programmers ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Content Delivery Network via Amazon Web Services: CloudFront: static.thegeekstuff.com

Served from: www.thegeekstuff.com @ 2012-02-09 15:49:24 -->
