<?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: Easy Search and Replace in Multiple Files on Linux Command Line</title>
	<atom:link href="http://systembash.com/content/easy-search-and-replace-in-multiple-files-on-linux-command-line/feed/" rel="self" type="application/rss+xml" />
	<link>http://systembash.com/content/easy-search-and-replace-in-multiple-files-on-linux-command-line/</link>
	<description>Technology and System Administration</description>
	<lastBuildDate>Thu, 02 Feb 2012 21:12:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Abcd3331</title>
		<link>http://systembash.com/content/easy-search-and-replace-in-multiple-files-on-linux-command-line/comment-page-1/#comment-41864</link>
		<dc:creator>Abcd3331</dc:creator>
		<pubDate>Fri, 08 Jul 2011 07:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://systembash.com/?p=365#comment-41864</guid>
		<description>very helpfull...... thanks a ton.....</description>
		<content:encoded><![CDATA[<p>very helpfull&#8230;&#8230; thanks a ton&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Dannie Storgaard</title>
		<link>http://systembash.com/content/easy-search-and-replace-in-multiple-files-on-linux-command-line/comment-page-1/#comment-40231</link>
		<dc:creator>Christian Dannie Storgaard</dc:creator>
		<pubDate>Thu, 01 Apr 2010 23:48:53 +0000</pubDate>
		<guid isPermaLink="false">http://systembash.com/?p=365#comment-40231</guid>
		<description>Thanks for the tip!
One thing though, it doesn&#039;t work with filenames containing spaces; here&#039;s an updated version:

grep -lZr -e &#039;&#039; * &#124; xargs -0 sed -i &#039;s///g&#039;

Also, it might be worth noting that the first search string (the first &#039;&#039;) can be written without any escaping, but that the next two strings (/) have to be escaped for use in a regular expression, that is, having . ( ) [ ] ? * and / being prefixed by a \ (e.g. &quot;/home/user/&quot; becomes &quot;\/home\/user\/&quot;)</description>
		<content:encoded><![CDATA[<p>Thanks for the tip!<br />
One thing though, it doesn&#8217;t work with filenames containing spaces; here&#8217;s an updated version:</p>
<p>grep -lZr -e &#8221; * | xargs -0 sed -i &#8216;s///g&#8217;</p>
<p>Also, it might be worth noting that the first search string (the first &#8221;) can be written without any escaping, but that the next two strings (/) have to be escaped for use in a regular expression, that is, having . ( ) [ ] ? * and / being prefixed by a \ (e.g. &#8220;/home/user/&#8221; becomes &#8220;\/home\/user\/&#8221;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Dannie Storgaard</title>
		<link>http://systembash.com/content/easy-search-and-replace-in-multiple-files-on-linux-command-line/comment-page-1/#comment-41605</link>
		<dc:creator>Christian Dannie Storgaard</dc:creator>
		<pubDate>Thu, 01 Apr 2010 23:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://systembash.com/?p=365#comment-41605</guid>
		<description>Thanks for the tip!
One thing though, it doesn&#039;t work with filenames containing spaces; here&#039;s an updated version:

grep -lZr -e &#039;&#039; * &#124; xargs -0 sed -i &#039;s///g&#039;

Also, it might be worth noting that the first search string (the first &#039;&#039;) can be written without any escaping, but that the next two strings (/) have to be escaped for use in a regular expression, that is, having . ( ) [ ] ? * and / being prefixed by a  (e.g. &quot;/home/user/&quot; becomes &quot;/home/user/&quot;)</description>
		<content:encoded><![CDATA[<p>Thanks for the tip!<br />
One thing though, it doesn&#8217;t work with filenames containing spaces; here&#8217;s an updated version:</p>
<p>grep -lZr -e &#8221; * | xargs -0 sed -i &#8216;s///g&#8217;</p>
<p>Also, it might be worth noting that the first search string (the first &#8221;) can be written without any escaping, but that the next two strings (/) have to be escaped for use in a regular expression, that is, having . ( ) [ ] ? * and / being prefixed by a  (e.g. &#8220;/home/user/&#8221; becomes &#8220;/home/user/&#8221;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Lanham</title>
		<link>http://systembash.com/content/easy-search-and-replace-in-multiple-files-on-linux-command-line/comment-page-1/#comment-40132</link>
		<dc:creator>Matthew Lanham</dc:creator>
		<pubDate>Sun, 14 Mar 2010 02:29:46 +0000</pubDate>
		<guid isPermaLink="false">http://systembash.com/?p=365#comment-40132</guid>
		<description>&lt;span class=&quot;topsy_trackback_comment&quot;&gt;&lt;span class=&quot;topsy_twitter_username&quot;&gt;&lt;span class=&quot;topsy_trackback_content&quot;&gt;Useful command line info for find &amp; replace http://bit.ly/ddzeQo&lt;/span&gt;&lt;/span&gt;</description>
		<content:encoded><![CDATA[<p><span class="topsy_trackback_comment"><span class="topsy_twitter_username"><span class="topsy_trackback_content">Useful command line info for find &amp; replace <a href="http://bit.ly/ddzeQo" rel="nofollow">http://bit.ly/ddzeQo</a></span></span></span></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Drager</title>
		<link>http://systembash.com/content/easy-search-and-replace-in-multiple-files-on-linux-command-line/comment-page-1/#comment-40053</link>
		<dc:creator>Dave Drager</dc:creator>
		<pubDate>Mon, 20 Jul 2009 09:27:20 +0000</pubDate>
		<guid isPermaLink="false">http://systembash.com/?p=365#comment-40053</guid>
		<description>&lt;span class=&quot;topsy_trackback_comment&quot;&gt;&lt;span class=&quot;topsy_twitter_username&quot;&gt;&lt;span class=&quot;topsy_trackback_content&quot;&gt;Post Update: Single line search/replace in multiple files, 100% more perl! http://su.pr/1S9lWS&lt;/span&gt;&lt;/span&gt;</description>
		<content:encoded><![CDATA[<p><span class="topsy_trackback_comment"><span class="topsy_twitter_username"><span class="topsy_trackback_content">Post Update: Single line search/replace in multiple files, 100% more perl! <a href="http://su.pr/1S9lWS" rel="nofollow">http://su.pr/1S9lWS</a></span></span></span></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://systembash.com/content/easy-search-and-replace-in-multiple-files-on-linux-command-line/comment-page-1/#comment-36957</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Mon, 20 Jul 2009 05:18:21 +0000</pubDate>
		<guid isPermaLink="false">http://systembash.com/?p=365#comment-36957</guid>
		<description>@btr: That is extremely helpful, thank you! Will update post.</description>
		<content:encoded><![CDATA[<p>@btr: That is extremely helpful, thank you! Will update post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Drager</title>
		<link>http://systembash.com/content/easy-search-and-replace-in-multiple-files-on-linux-command-line/comment-page-1/#comment-41604</link>
		<dc:creator>Dave Drager</dc:creator>
		<pubDate>Mon, 20 Jul 2009 05:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://systembash.com/?p=365#comment-41604</guid>
		<description>@btr: That is extremely helpful, thank you! Will update post.</description>
		<content:encoded><![CDATA[<p>@btr: That is extremely helpful, thank you! Will update post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: btr</title>
		<link>http://systembash.com/content/easy-search-and-replace-in-multiple-files-on-linux-command-line/comment-page-1/#comment-36956</link>
		<dc:creator>btr</dc:creator>
		<pubDate>Mon, 20 Jul 2009 05:04:50 +0000</pubDate>
		<guid isPermaLink="false">http://systembash.com/?p=365#comment-36956</guid>
		<description>Perl provides a really nice one-line for this kind of thing:

perl -p -i -e &#039;s///g&#039; *

It also provides the option of creating a backup of each file changed:

perl -p -i.bak -e &#039;s///g&#039; *

mnemonic: PIE (&quot;easy as pie&quot;, etc.)
google &quot;perl pie&quot; and you&#039;ll get lots of info for other uses of this technique.

http://www.linux.org/lessons/short/perlpie/perl_pie.html</description>
		<content:encoded><![CDATA[<p>Perl provides a really nice one-line for this kind of thing:</p>
<p>perl -p -i -e &#8216;s///g&#8217; *</p>
<p>It also provides the option of creating a backup of each file changed:</p>
<p>perl -p -i.bak -e &#8216;s///g&#8217; *</p>
<p>mnemonic: PIE (&#8220;easy as pie&#8221;, etc.)<br />
google &#8220;perl pie&#8221; and you&#8217;ll get lots of info for other uses of this technique.</p>
<p><a href="http://www.linux.org/lessons/short/perlpie/perl_pie.html" rel="nofollow">http://www.linux.org/lessons/short/perlpie/perl_pie.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: btr</title>
		<link>http://systembash.com/content/easy-search-and-replace-in-multiple-files-on-linux-command-line/comment-page-1/#comment-41603</link>
		<dc:creator>btr</dc:creator>
		<pubDate>Mon, 20 Jul 2009 05:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://systembash.com/?p=365#comment-41603</guid>
		<description>Perl provides a really nice one-line for this kind of thing:

perl -p -i -e &#039;s///g&#039; *

It also provides the option of creating a backup of each file changed:

perl -p -i.bak -e &#039;s///g&#039; *

mnemonic: PIE (&quot;easy as pie&quot;, etc.)
google &quot;perl pie&quot; and you&#039;ll get lots of info for other uses of this technique.

http://www.linux.org/lessons/short/perlpie/perl_pie.html</description>
		<content:encoded><![CDATA[<p>Perl provides a really nice one-line for this kind of thing:</p>
<p>perl -p -i -e &#8216;s///g&#8217; *</p>
<p>It also provides the option of creating a backup of each file changed:</p>
<p>perl -p -i.bak -e &#8216;s///g&#8217; *</p>
<p>mnemonic: PIE (&#8220;easy as pie&#8221;, etc.)<br />
google &#8220;perl pie&#8221; and you&#8217;ll get lots of info for other uses of this technique.</p>
<p><a href="http://www.linux.org/lessons/short/perlpie/perl_pie.html" rel="nofollow">http://www.linux.org/lessons/short/perlpie/perl_pie.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nobu</title>
		<link>http://systembash.com/content/easy-search-and-replace-in-multiple-files-on-linux-command-line/comment-page-1/#comment-36234</link>
		<dc:creator>nobu</dc:creator>
		<pubDate>Fri, 03 Jul 2009 10:16:44 +0000</pubDate>
		<guid isPermaLink="false">http://systembash.com/?p=365#comment-36234</guid>
		<description>Very useful, thks from Spain!!</description>
		<content:encoded><![CDATA[<p>Very useful, thks from Spain!!</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
Database Caching using disk: basic

Served from: systembash.com @ 2012-02-09 02:34:15 -->
