<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SuperWebDeveloper.com &#187; sed</title>
	<atom:link href="http://www.superwebdeveloper.com/tag/sed/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.superwebdeveloper.com</link>
	<description>code, design, concepts, ecommerce, media</description>
	<lastBuildDate>Tue, 03 May 2011 04:41:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Edit a line in all php files in a directory with find and sed</title>
		<link>http://www.superwebdeveloper.com/2008/11/01/edit-a-line-in-all-php-files-in-a-directory-with-find-and-sed/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.superwebdeveloper.com/2008/11/01/edit-a-line-in-all-php-files-in-a-directory-with-find-and-sed/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 03:41:42 +0000</pubDate>
		<dc:creator>pbg</dc:creator>
				<category><![CDATA[GNU Linux]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.superwebdeveloper.com/?p=76</guid>
		<description><![CDATA[Here is about the simplest example I could come up with, to change a reference to a new include directory location in a codebase. You can of course do fancier things should you wish to dump your results to a directory before overwriting your files. #!/bin/sh for files in `find *.php` do sed &#8216;s/..\/..\/adminincl/includes/g&#8217; $files [...]]]></description>
			<content:encoded><![CDATA[<p>Here is about the simplest example I could come up with, to change a reference to a new include directory location in a codebase.</p>
<p>You can of course do fancier things should you wish to dump your results to a directory before overwriting your files.</p>
<p>#!/bin/sh<br />
for files in `find *.php`<br />
do<br />
sed &#8216;s/..\/..\/adminincl/includes/g&#8217; $files &gt; &#8216;temp&#8217;.$files &amp;&amp; mv &#8216;temp&#8217;.$files $files<br />
done</p>
]]></content:encoded>
			<wfw:commentRss>http://www.superwebdeveloper.com/2008/11/01/edit-a-line-in-all-php-files-in-a-directory-with-find-and-sed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

