<?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: Append, Insert, Replace, and Count File Lines</title>
	<atom:link href="http://www.thegeekstuff.com/2009/11/unix-sed-tutorial-append-insert-replace-and-count-file-lines/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thegeekstuff.com/2009/11/unix-sed-tutorial-append-insert-replace-and-count-file-lines/</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: arvind</title>
		<link>http://www.thegeekstuff.com/2009/11/unix-sed-tutorial-append-insert-replace-and-count-file-lines/comment-page-1/#comment-176887</link>
		<dc:creator>arvind</dc:creator>
		<pubDate>Thu, 12 Jan 2012 13:49:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=2471#comment-176887</guid>
		<description>I want to add &quot;something else&quot; after &quot;something&quot; , so i use the below code.
sed &#039;
/something/ a\
something else
&#039; test.txt
This will just list the contents,but how do i write this new line to the file. I mean the same file and not to a new file.</description>
		<content:encoded><![CDATA[<p>I want to add &#8220;something else&#8221; after &#8220;something&#8221; , so i use the below code.<br />
sed &#8216;<br />
/something/ a\<br />
something else<br />
&#8216; test.txt<br />
This will just list the contents,but how do i write this new line to the file. I mean the same file and not to a new file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mary</title>
		<link>http://www.thegeekstuff.com/2009/11/unix-sed-tutorial-append-insert-replace-and-count-file-lines/comment-page-1/#comment-119953</link>
		<dc:creator>mary</dc:creator>
		<pubDate>Fri, 29 Jul 2011 21:14:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=2471#comment-119953</guid>
		<description>I want to change the first line of a csv file into lower case. How to do that. thanks</description>
		<content:encoded><![CDATA[<p>I want to change the first line of a csv file into lower case. How to do that. thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Liontooth</title>
		<link>http://www.thegeekstuff.com/2009/11/unix-sed-tutorial-append-insert-replace-and-count-file-lines/comment-page-1/#comment-112924</link>
		<dc:creator>David Liontooth</dc:creator>
		<pubDate>Sat, 18 Jun 2011 15:28:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=2471#comment-112924</guid>
		<description>Balaji -- they all work in scripts; see &lt;a href=&quot;http://tldp.org/LDP/abs/html/&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; for instance </description>
		<content:encoded><![CDATA[<p>Balaji &#8212; they all work in scripts; see <a href="http://tldp.org/LDP/abs/html/" rel="nofollow">here</a> for instance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Liontooth</title>
		<link>http://www.thegeekstuff.com/2009/11/unix-sed-tutorial-append-insert-replace-and-count-file-lines/comment-page-1/#comment-112923</link>
		<dc:creator>David Liontooth</dc:creator>
		<pubDate>Sat, 18 Jun 2011 15:26:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=2471#comment-112923</guid>
		<description>Thanks! I nominate for the best set of sed instructions on the Internet.</description>
		<content:encoded><![CDATA[<p>Thanks! I nominate for the best set of sed instructions on the Internet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Balaji</title>
		<link>http://www.thegeekstuff.com/2009/11/unix-sed-tutorial-append-insert-replace-and-count-file-lines/comment-page-1/#comment-102633</link>
		<dc:creator>Balaji</dc:creator>
		<pubDate>Fri, 06 May 2011 09:25:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=2471#comment-102633</guid>
		<description>Very nice tutorial...
But how to write these sed commands in a script... do they work only in command-line?</description>
		<content:encoded><![CDATA[<p>Very nice tutorial&#8230;<br />
But how to write these sed commands in a script&#8230; do they work only in command-line?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.thegeekstuff.com/2009/11/unix-sed-tutorial-append-insert-replace-and-count-file-lines/comment-page-1/#comment-71439</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 01 Dec 2010 09:19:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=2471#comment-71439</guid>
		<description>@ Blast

cat file2&gt;&gt; file1 should work fine</description>
		<content:encoded><![CDATA[<p>@ Blast</p>
<p>cat file2&gt;&gt; file1 should work fine</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: frankhuang</title>
		<link>http://www.thegeekstuff.com/2009/11/unix-sed-tutorial-append-insert-replace-and-count-file-lines/comment-page-1/#comment-70062</link>
		<dc:creator>frankhuang</dc:creator>
		<pubDate>Wed, 17 Nov 2010 08:25:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=2471#comment-70062</guid>
		<description>To balast:
for  f in `ls file[2-4].txt` ; do
     cat file1.txt $f &gt; newfile
     cp newfile $f
 done

To Manish:
sed &#039;s/127\\\.0/192\\\.168/g&#039; filename 
works</description>
		<content:encoded><![CDATA[<p>To balast:<br />
for  f in `ls file[2-4].txt` ; do<br />
     cat file1.txt $f &gt; newfile<br />
     cp newfile $f<br />
 done</p>
<p>To Manish:<br />
sed &#8216;s/127\\\.0/192\\\.168/g&#8217; filename<br />
works</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manish</title>
		<link>http://www.thegeekstuff.com/2009/11/unix-sed-tutorial-append-insert-replace-and-count-file-lines/comment-page-1/#comment-68638</link>
		<dc:creator>Manish</dc:creator>
		<pubDate>Thu, 04 Nov 2010 14:53:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=2471#comment-68638</guid>
		<description>Hi 

How I can escape Back slashes in sed. I want to change the pattern or string
from 
allow ^127\.0\.0\.1$
to
allow ^192\.168\.1\.10$

Thank You,
                   Manish</description>
		<content:encoded><![CDATA[<p>Hi </p>
<p>How I can escape Back slashes in sed. I want to change the pattern or string<br />
from<br />
allow ^127\.0\.0\.1$<br />
to<br />
allow ^192\.168\.1\.10$</p>
<p>Thank You,<br />
                   Manish</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Balast</title>
		<link>http://www.thegeekstuff.com/2009/11/unix-sed-tutorial-append-insert-replace-and-count-file-lines/comment-page-1/#comment-52211</link>
		<dc:creator>Balast</dc:creator>
		<pubDate>Sat, 03 Jul 2010 18:29:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=2471#comment-52211</guid>
		<description>Hi,

How to insert content of file1 on the top of the file2, file3, file4, etc in same directory ?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>How to insert content of file1 on the top of the file2, file3, file4, etc in same directory ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramesh Natarajan</title>
		<link>http://www.thegeekstuff.com/2009/11/unix-sed-tutorial-append-insert-replace-and-count-file-lines/comment-page-1/#comment-25629</link>
		<dc:creator>Ramesh Natarajan</dc:creator>
		<pubDate>Fri, 11 Dec 2009 00:02:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=2471#comment-25629</guid>
		<description>@linuxindetails,

Thanks for clarifying how the option -i works on Debian.</description>
		<content:encoded><![CDATA[<p>@linuxindetails,</p>
<p>Thanks for clarifying how the option -i works on Debian.</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:39:01 -->
