<?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: Search and Replace for multiple files</title>
	<atom:link href="http://www.sysadminvalley.com/2009/02/02/search-and-replace-for-multiple-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sysadminvalley.com/2009/02/02/search-and-replace-for-multiple-files/</link>
	<description>I might as well write this stuff down so I remember it tomorrow</description>
	<lastBuildDate>Fri, 16 Jul 2010 11:04:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Charlie</title>
		<link>http://www.sysadminvalley.com/2009/02/02/search-and-replace-for-multiple-files/comment-page-1/#comment-25</link>
		<dc:creator>Charlie</dc:creator>
		<pubDate>Wed, 03 Jun 2009 14:42:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.sysadminvalley.com/?p=68#comment-25</guid>
		<description>Hi Matt,
I wrote an open source program which allows you to run multiple replacements across multiple files. The link is here: http://www.neptuneweb.com/find_and_replace.html</description>
		<content:encoded><![CDATA[<p>Hi Matt,<br />
I wrote an open source program which allows you to run multiple replacements across multiple files. The link is here: <a href="http://www.neptuneweb.com/find_and_replace.html" rel="nofollow">http://www.neptuneweb.com/find_and_replace.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mshields</title>
		<link>http://www.sysadminvalley.com/2009/02/02/search-and-replace-for-multiple-files/comment-page-1/#comment-11</link>
		<dc:creator>mshields</dc:creator>
		<pubDate>Thu, 19 Feb 2009 02:15:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.sysadminvalley.com/?p=68#comment-11</guid>
		<description>You are correct.  One way to get around losing the permissions would be to change the &quot;mv&quot; line to


&lt;blockquote&gt;cat tmp_file &gt; &quot;$file&quot;&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>You are correct.  One way to get around losing the permissions would be to change the &#8220;mv&#8221; line to</p>
<blockquote><p>cat tmp_file > &#8220;$file&#8221;</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Pelster</title>
		<link>http://www.sysadminvalley.com/2009/02/02/search-and-replace-for-multiple-files/comment-page-1/#comment-10</link>
		<dc:creator>John Pelster</dc:creator>
		<pubDate>Thu, 19 Feb 2009 00:26:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.sysadminvalley.com/?p=68#comment-10</guid>
		<description>I used an almost identical solution a few years back, and discovered one &quot;gotcha&quot;...

If you are running a php script as a cron job (for example) and you need it to be executable, then unless your umask is set properly, you&#039;re probably going to drop your executable permissions when you redirect the sed output and then mv it back over the original.

-- John</description>
		<content:encoded><![CDATA[<p>I used an almost identical solution a few years back, and discovered one &#8220;gotcha&#8221;&#8230;</p>
<p>If you are running a php script as a cron job (for example) and you need it to be executable, then unless your umask is set properly, you&#8217;re probably going to drop your executable permissions when you redirect the sed output and then mv it back over the original.</p>
<p>&#8211; John</p>
]]></content:encoded>
	</item>
</channel>
</rss>
