<?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="https://systembash.com/easy-search-and-replace-in-multiple-files-on-linux-command-line/feed/" rel="self" type="application/rss+xml" />
	<link>https://systembash.com/easy-search-and-replace-in-multiple-files-on-linux-command-line/</link>
	<description>Technology and System Administration</description>
	<lastBuildDate>Fri, 08 Jul 2011 07:03:00 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.3.1</generator>
	<item>
		<title>
		By: Abcd3331		</title>
		<link>https://systembash.com/easy-search-and-replace-in-multiple-files-on-linux-command-line/#comment-41864</link>

		<dc:creator><![CDATA[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><![CDATA[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>https://systembash.com/easy-search-and-replace-in-multiple-files-on-linux-command-line/#comment-40231</link>

		<dc:creator><![CDATA[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><![CDATA[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>https://systembash.com/easy-search-and-replace-in-multiple-files-on-linux-command-line/#comment-41605</link>

		<dc:creator><![CDATA[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><![CDATA[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>https://systembash.com/easy-search-and-replace-in-multiple-files-on-linux-command-line/#comment-40132</link>

		<dc:creator><![CDATA[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><![CDATA[&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 &#038; 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 ugc">http://bit.ly/ddzeQo</a></span></span></span></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dave Drager		</title>
		<link>https://systembash.com/easy-search-and-replace-in-multiple-files-on-linux-command-line/#comment-40053</link>

		<dc:creator><![CDATA[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><![CDATA[&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 ugc">http://su.pr/1S9lWS</a></span></span></span></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dave		</title>
		<link>https://systembash.com/easy-search-and-replace-in-multiple-files-on-linux-command-line/#comment-36957</link>

		<dc:creator><![CDATA[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><![CDATA[In reply to &lt;a href=&quot;https://systembash.com/easy-search-and-replace-in-multiple-files-on-linux-command-line/#comment-36956&quot;&gt;btr&lt;/a&gt;.

@btr: That is extremely helpful, thank you! Will update post.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://systembash.com/easy-search-and-replace-in-multiple-files-on-linux-command-line/#comment-36956">btr</a>.</p>
<p>@btr: That is extremely helpful, thank you! Will update post.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dave Drager		</title>
		<link>https://systembash.com/easy-search-and-replace-in-multiple-files-on-linux-command-line/#comment-41604</link>

		<dc:creator><![CDATA[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><![CDATA[In reply to &lt;a href=&quot;https://systembash.com/easy-search-and-replace-in-multiple-files-on-linux-command-line/#comment-41603&quot;&gt;btr&lt;/a&gt;.

@btr: That is extremely helpful, thank you! Will update post.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://systembash.com/easy-search-and-replace-in-multiple-files-on-linux-command-line/#comment-41603">btr</a>.</p>
<p>@btr: That is extremely helpful, thank you! Will update post.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: btr		</title>
		<link>https://systembash.com/easy-search-and-replace-in-multiple-files-on-linux-command-line/#comment-36956</link>

		<dc:creator><![CDATA[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><![CDATA[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 ugc">http://www.linux.org/lessons/short/perlpie/perl_pie.html</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: btr		</title>
		<link>https://systembash.com/easy-search-and-replace-in-multiple-files-on-linux-command-line/#comment-41603</link>

		<dc:creator><![CDATA[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><![CDATA[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 ugc">http://www.linux.org/lessons/short/perlpie/perl_pie.html</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: nobu		</title>
		<link>https://systembash.com/easy-search-and-replace-in-multiple-files-on-linux-command-line/#comment-36234</link>

		<dc:creator><![CDATA[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><![CDATA[Very useful, thks from Spain!!]]></description>
			<content:encoded><![CDATA[<p>Very useful, thks from Spain!!</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
