<?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"
	>
<channel>
	<title>Comments on: How I used the Unix command line to do a multi-file search and replace to fix over 4,700 individual files</title>
	<atom:link href="http://www.gabrielserafini.com/archives/2007/03/21/how-i-used-the-unix-command-line-to-do-a-multi-file-search-and-replace-to-fix-over-4700-individual-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gabrielserafini.com/archives/2007/03/21/how-i-used-the-unix-command-line-to-do-a-multi-file-search-and-replace-to-fix-over-4700-individual-files/</link>
	<description>Web Design, Development and Business ... infopoet</description>
	<pubDate>Fri, 21 Nov 2008 19:54:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Troo</title>
		<link>http://www.gabrielserafini.com/archives/2007/03/21/how-i-used-the-unix-command-line-to-do-a-multi-file-search-and-replace-to-fix-over-4700-individual-files/#comment-114733</link>
		<dc:creator>Troo</dc:creator>
		<pubDate>Sun, 19 Oct 2008 15:37:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.gabrielserafini.com/?p=795#comment-114733</guid>
		<description>Huge thanks for this tip! Saved me from an afternoon of pain ;)</description>
		<content:encoded><![CDATA[<p>Huge thanks for this tip! Saved me from an afternoon of pain <img src='http://www.gabrielserafini.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://www.gabrielserafini.com/archives/2007/03/21/how-i-used-the-unix-command-line-to-do-a-multi-file-search-and-replace-to-fix-over-4700-individual-files/#comment-112263</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Tue, 09 Sep 2008 22:52:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.gabrielserafini.com/?p=795#comment-112263</guid>
		<description>How would you do this if you string to find and replace contained slashes?</description>
		<content:encoded><![CDATA[<p>How would you do this if you string to find and replace contained slashes?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Connor</title>
		<link>http://www.gabrielserafini.com/archives/2007/03/21/how-i-used-the-unix-command-line-to-do-a-multi-file-search-and-replace-to-fix-over-4700-individual-files/#comment-109501</link>
		<dc:creator>Connor</dc:creator>
		<pubDate>Thu, 07 Aug 2008 17:10:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.gabrielserafini.com/?p=795#comment-109501</guid>
		<description>Solaris doesn't accept the -i :'(</description>
		<content:encoded><![CDATA[<p>Solaris doesn&#8217;t accept the -i :&#8217;(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Captain Winky</title>
		<link>http://www.gabrielserafini.com/archives/2007/03/21/how-i-used-the-unix-command-line-to-do-a-multi-file-search-and-replace-to-fix-over-4700-individual-files/#comment-105905</link>
		<dc:creator>Captain Winky</dc:creator>
		<pubDate>Sat, 07 Jun 2008 01:27:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.gabrielserafini.com/?p=795#comment-105905</guid>
		<description>Worked like a charm!  Thanks! :)</description>
		<content:encoded><![CDATA[<p>Worked like a charm!  Thanks! <img src='http://www.gabrielserafini.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johnbhai</title>
		<link>http://www.gabrielserafini.com/archives/2007/03/21/how-i-used-the-unix-command-line-to-do-a-multi-file-search-and-replace-to-fix-over-4700-individual-files/#comment-29706</link>
		<dc:creator>johnbhai</dc:creator>
		<pubDate>Mon, 02 Apr 2007 18:53:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.gabrielserafini.com/?p=795#comment-29706</guid>
		<description>&#62;&#62;Iâ€™m pretty sure it was a script that was able to run on the box itself. The cPanel vulnerability was pretty severe to let that happen.

What have you done to avoid this from happening again ? the vulnerability still exists ?</description>
		<content:encoded><![CDATA[<p>&gt;&gt;Iâ€™m pretty sure it was a script that was able to run on the box itself. The cPanel vulnerability was pretty severe to let that happen.</p>
<p>What have you done to avoid this from happening again ? the vulnerability still exists ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timothy R. Butler</title>
		<link>http://www.gabrielserafini.com/archives/2007/03/21/how-i-used-the-unix-command-line-to-do-a-multi-file-search-and-replace-to-fix-over-4700-individual-files/#comment-29468</link>
		<dc:creator>Timothy R. Butler</dc:creator>
		<pubDate>Wed, 28 Mar 2007 03:06:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.gabrielserafini.com/?p=795#comment-29468</guid>
		<description>Hey, thanks for the tip. It was a real time saver!</description>
		<content:encoded><![CDATA[<p>Hey, thanks for the tip. It was a real time saver!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel</title>
		<link>http://www.gabrielserafini.com/archives/2007/03/21/how-i-used-the-unix-command-line-to-do-a-multi-file-search-and-replace-to-fix-over-4700-individual-files/#comment-29465</link>
		<dc:creator>Gabriel</dc:creator>
		<pubDate>Wed, 28 Mar 2007 02:00:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.gabrielserafini.com/?p=795#comment-29465</guid>
		<description>I'm pretty sure it was a script that was able to run on the box itself.  The cPanel vulnerability was pretty severe to let that happen.</description>
		<content:encoded><![CDATA[<p>I&#8217;m pretty sure it was a script that was able to run on the box itself.  The cPanel vulnerability was pretty severe to let that happen.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johnbhai</title>
		<link>http://www.gabrielserafini.com/archives/2007/03/21/how-i-used-the-unix-command-line-to-do-a-multi-file-search-and-replace-to-fix-over-4700-individual-files/#comment-29298</link>
		<dc:creator>johnbhai</dc:creator>
		<pubDate>Fri, 23 Mar 2007 18:25:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.gabrielserafini.com/?p=795#comment-29298</guid>
		<description>i was wondering..how did the hacker add this code to so many files? sounds off the track..does ne one know how.?</description>
		<content:encoded><![CDATA[<p>i was wondering..how did the hacker add this code to so many files? sounds off the track..does ne one know how.?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel</title>
		<link>http://www.gabrielserafini.com/archives/2007/03/21/how-i-used-the-unix-command-line-to-do-a-multi-file-search-and-replace-to-fix-over-4700-individual-files/#comment-29238</link>
		<dc:creator>Gabriel</dc:creator>
		<pubDate>Thu, 22 Mar 2007 20:11:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.gabrielserafini.com/?p=795#comment-29238</guid>
		<description>The first sed fixes the pathnames with spaces issue.  Also your way would execute the sed on every single file in the filesystem instead of just in the ones that in fact had the code.

I love the fact that there is always more than one way to get things done using Unix... :)</description>
		<content:encoded><![CDATA[<p>The first sed fixes the pathnames with spaces issue.  Also your way would execute the sed on every single file in the filesystem instead of just in the ones that in fact had the code.</p>
<p>I love the fact that there is always more than one way to get things done using Unix&#8230; <img src='http://www.gabrielserafini.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leandro Penz</title>
		<link>http://www.gabrielserafini.com/archives/2007/03/21/how-i-used-the-unix-command-line-to-do-a-multi-file-search-and-replace-to-fix-over-4700-individual-files/#comment-29223</link>
		<dc:creator>Leandro Penz</dc:creator>
		<pubDate>Thu, 22 Mar 2007 16:54:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.gabrielserafini.com/?p=795#comment-29223</guid>
		<description>That's ok, but if your path has dir names with spaces, it won't work

The proper way to do it would be with find:

find . -type f -exec sed -i 'regex' '{}' ';'</description>
		<content:encoded><![CDATA[<p>That&#8217;s ok, but if your path has dir names with spaces, it won&#8217;t work</p>
<p>The proper way to do it would be with find:</p>
<p>find . -type f -exec sed -i &#8216;regex&#8217; &#8216;{}&#8217; &#8216;;&#8217;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
