<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:ymaps="http://api.maps.yahoo.com/Maps/V2/AnnotatedMaps.xsd">

<channel>
	<title>austenconstable.com &#187; sed</title>
	<atom:link href="http://www.austenconstable.com/tag/sed/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.austenconstable.com</link>
	<description>a year in the merde</description>
	<lastBuildDate>Thu, 15 Oct 2009 16:19:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>HOWTO: Recursive search and replace on the Linux command line</title>
		<link>http://www.austenconstable.com/2008/09/02/recursive-search-and-replace-on-the-linux-command-line/</link>
		<comments>http://www.austenconstable.com/2008/09/02/recursive-search-and-replace-on-the-linux-command-line/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 15:35:16 +0000</pubDate>
		<dc:creator>Austen</dc:creator>
				<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[sed]]></category>

		<guid isPermaLink="false">http://www.austenconstable.com/?p=58</guid>
		<description><![CDATA[The &#8216;traditional&#8217; way to search and replace on the command line was to use some combination of grep/find/perl/sed etc. Which offers great flexibility but at the end of the day can turn into a right pain in order to complete &#8230; <a href="http://www.austenconstable.com/2008/09/02/recursive-search-and-replace-on-the-linux-command-line/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration: line-through;">The &#8216;traditional&#8217; way to search and replace on the command line was to use some combination of grep/find/perl/sed etc. Which offers great flexibility but at the end of the day can turn into a right pain in order to complete a simple task.</span> <em>Turns out only to be a pain in the ass if you don&#8217;t know or can&#8217;t remember the correct syntax! </em><span style="text-decoration: line-through;"><br />
</span></p>
<p>Recently I stumbled across rpl. (<a href="http://freshmeat.net/projects/rpl/" onclick="pageTracker._trackPageview('/outgoing/freshmeat.net/projects/rpl/?referer=');">http://freshmeat.net/projects/rpl/</a>) It&#8217;s a nice little text replacement utility which is as simple as:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rpl <span style="color: #660033;">-R</span> search replace <span style="color: #000000; font-weight: bold;">*</span></pre></div></div>

<p>Although rpl is easy, the other alternatives are hardly difficult. (At least once you know them)</p>
<p>For non-recursive search and replace try: <a href="http://www.liamdelahunty.com/tips/linux_search_and_replace_multiple_files.php" onclick="pageTracker._trackPageview('/outgoing/www.liamdelahunty.com/tips/linux_search_and_replace_multiple_files.php?referer=');">Perl</a> or <a href="http://gabeanderson.com/2008/02/01/unixlinux-find-replace-in-multiple-files/" onclick="pageTracker._trackPageview('/outgoing/gabeanderson.com/2008/02/01/unixlinux-find-replace-in-multiple-files/?referer=');">sed</a>. (At some point I&#8217;m sure I&#8217;ll get around to finding recursive Perl and sed alternatives.)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.austenconstable.com/2008/09/02/recursive-search-and-replace-on-the-linux-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

