<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-974036606587739553.post3800563091601252604..comments</id><updated>2009-11-18T12:37:02.461-08:00</updated><title type='text'>Comments on Ibrahim Ahmed: Vim: Find and replace text across files</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.ibrahim-ahmed.com/feeds/3800563091601252604/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default'/><link rel='alternate' type='text/html' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html'/><author><name>Ibrahim Ahmed</name><uri>http://www.blogger.com/profile/01640528992428968621</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-974036606587739553.post-7387037349648535677</id><published>2009-11-18T12:37:02.461-08:00</published><updated>2009-11-18T12:37:02.461-08:00</updated><title type='text'>I was looking for a better S&amp;R method over files. ...</title><content type='html'>I was looking for a better S&amp;amp;R method over files.  Vim user of 6 years and have never used argsdo... Excellent!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default/7387037349648535677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default/7387037349648535677'/><link rel='alternate' type='text/html' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html?showComment=1258576622461#c7387037349648535677' title=''/><author><name>Michael</name><uri>http://www.blogger.com/profile/18165196244526436191</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html' ref='tag:blogger.com,1999:blog-974036606587739553.post-3800563091601252604' source='http://www.blogger.com/feeds/974036606587739553/posts/default/3800563091601252604' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-974036606587739553.post-2865777962843071565</id><published>2009-10-21T19:20:03.648-07:00</published><updated>2009-10-21T19:20:03.648-07:00</updated><title type='text'>Thanks for this post. I've been using Vim for only...</title><content type='html'>Thanks for this post. I&amp;#39;ve been using Vim for only about a month now but everyday I try to learn something new about it. Today I stumbled upon this post and i&amp;#39;m excited to try it out. Also, thanks for @antipode for the great script.&lt;br /&gt;&lt;br /&gt;Cheers!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default/2865777962843071565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default/2865777962843071565'/><link rel='alternate' type='text/html' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html?showComment=1256178003648#c2865777962843071565' title=''/><author><name>Sandman</name><uri>http://www.blogger.com/profile/01684712264373943753</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html' ref='tag:blogger.com,1999:blog-974036606587739553.post-3800563091601252604' source='http://www.blogger.com/feeds/974036606587739553/posts/default/3800563091601252604' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-974036606587739553.post-2495539027528134115</id><published>2009-09-24T05:40:13.913-07:00</published><updated>2009-09-24T05:40:13.913-07:00</updated><title type='text'>Thanks!</title><content type='html'>Thanks!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default/2495539027528134115'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default/2495539027528134115'/><link rel='alternate' type='text/html' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html?showComment=1253796013913#c2495539027528134115' title=''/><author><name>Sergey Miryanov</name><uri>http://www.blogger.com/profile/05738835549282829781</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html' ref='tag:blogger.com,1999:blog-974036606587739553.post-3800563091601252604' source='http://www.blogger.com/feeds/974036606587739553/posts/default/3800563091601252604' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-974036606587739553.post-4384963864417526054</id><published>2009-04-24T15:23:00.000-07:00</published><updated>2009-04-24T15:23:00.000-07:00</updated><title type='text'>السلام عليكم

لكم انا سعيد برؤية مدونتك هذه - هي ا...</title><content type='html'>السلام عليكم&lt;br /&gt;&lt;br /&gt;لكم انا سعيد برؤية مدونتك هذه - هي اول مدونة بهذا الشكل الإحترافي  التي اجدها مكتوبة بواسطة عربي. كنت ابحث عن معلومة حول "في أي إم" ووجدت مدونتك. اتمنى لك التوفيق&lt;br /&gt;&lt;br /&gt;حاتم - اميريكا</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default/4384963864417526054'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default/4384963864417526054'/><link rel='alternate' type='text/html' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html?showComment=1240611780000#c4384963864417526054' title=''/><author><name>Hatim Hegab</name><uri>http://www.blogger.com/profile/00271033705069814983</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html' ref='tag:blogger.com,1999:blog-974036606587739553.post-3800563091601252604' source='http://www.blogger.com/feeds/974036606587739553/posts/default/3800563091601252604' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-974036606587739553.post-4177112330754962078</id><published>2009-02-17T12:03:00.000-08:00</published><updated>2009-02-17T12:03:00.000-08:00</updated><title type='text'>Thanks for this!  Well explained.  I've been using...</title><content type='html'>Thanks for this!  Well explained.  I've been using vim for over a decade now, but there are many corners and abilities I've never really delved into before.  This article came up after a simple google, and now I'm a better vimmer for it.  Thanks again!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default/4177112330754962078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default/4177112330754962078'/><link rel='alternate' type='text/html' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html?showComment=1234900980000#c4177112330754962078' title=''/><author><name>Nicholas Evans</name><uri>http://www.blogger.com/profile/06832428827561511392</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html' ref='tag:blogger.com,1999:blog-974036606587739553.post-3800563091601252604' source='http://www.blogger.com/feeds/974036606587739553/posts/default/3800563091601252604' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-974036606587739553.post-3498384239413451799</id><published>2009-02-11T11:31:00.000-08:00</published><updated>2009-02-11T11:31:00.000-08:00</updated><title type='text'>Here's a slightly more maintainable version of the...</title><content type='html'>Here's a slightly more maintainable version of the &lt;B&gt;find-rails&lt;/B&gt; script.&lt;BR/&gt;&lt;BR/&gt;#!/bin/bash&lt;BR/&gt;if [ -d app ] &amp;amp;&amp;amp; [ -d config ] &amp;amp;&amp;amp; [ -d script ] &amp;amp;&amp;amp; [ -d vendor ]&lt;BR/&gt;then&lt;BR/&gt;  find . \&lt;BR/&gt;  -name &amp;#39;*.sql&amp;#39; -prune -o \&lt;BR/&gt;  -name &amp;#39;*.csv&amp;#39; -prune -o \&lt;BR/&gt;  -name &amp;#39;*.swp&amp;#39; -prune -o \&lt;BR/&gt;  -name &amp;#39;*.txt&amp;#39; -prune -o \&lt;BR/&gt;  -name &amp;#39;schema.rb&amp;#39; -prune -o \&lt;BR/&gt;  -path &amp;#39;./tmp&amp;#39; -prune -o \&lt;BR/&gt;  -path &amp;#39;./log&amp;#39; -prune -o \&lt;BR/&gt;  -path &amp;#39;./vendor&amp;#39; -prune -o \&lt;BR/&gt;  -path &amp;#39;*/.svn&amp;#39; -prune \&lt;BR/&gt;  -o -type f -print&lt;BR/&gt;else&lt;BR/&gt;  echo &amp;quot;Oops! `pwd` doesn&amp;#39;t look like a Rails directory!&amp;quot;&lt;BR/&gt;  exit 1&lt;BR/&gt;fi</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default/3498384239413451799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default/3498384239413451799'/><link rel='alternate' type='text/html' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html?showComment=1234380660000#c3498384239413451799' title=''/><author><name>antipode</name><uri>http://www.blogger.com/profile/05422953266132688621</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html' ref='tag:blogger.com,1999:blog-974036606587739553.post-3800563091601252604' source='http://www.blogger.com/feeds/974036606587739553/posts/default/3800563091601252604' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-974036606587739553.post-1701674636670406157</id><published>2009-02-11T11:08:00.000-08:00</published><updated>2009-02-11T11:08:00.000-08:00</updated><title type='text'>I've noticed that you can run any arbitrary shell ...</title><content type='html'>I've noticed that you can run any arbitrary shell command with &lt;B&gt;args&lt;/B&gt;.&lt;BR/&gt;&lt;BR/&gt;For example, this coughs up all rb files in your current directory:&lt;BR/&gt;&lt;BR/&gt;:args `ls *.rb`&lt;BR/&gt;&lt;BR/&gt;So, if you have a script like this:&lt;BR/&gt;&lt;BR/&gt;#!/bin/bash&lt;BR/&gt;if [ -d app ] &amp;amp;&amp;amp; [ -d config ] &amp;amp;&amp;amp; [ -d script ] &amp;amp;&amp;amp; [ -d vendor ]&lt;BR/&gt;then&lt;BR/&gt;  find . -name &amp;#39;*.sql&amp;#39; -prune -o -name &amp;#39;*.csv&amp;#39; -prune -o -path &amp;#39;./log&amp;#39; -prune -o -path &amp;#39;./vendor&amp;#39; -prune -o -path &amp;#39;*/.svn&amp;#39; -prune -o -type f -print&lt;BR/&gt;else&lt;BR/&gt;  echo &amp;quot;Oops! `pwd` doesn&amp;#39;t look like a Rails directory!&amp;quot;&lt;BR/&gt;  exit 1&lt;BR/&gt;fi&lt;BR/&gt;&lt;BR/&gt;... and supposing you call it &lt;B&gt;find-rails&lt;/B&gt; and you put it in your path, then you can run:&lt;BR/&gt;&lt;BR/&gt;:args `find-rails`&lt;BR/&gt;&lt;BR/&gt;... and you get your whole project tree for handy search-and-replace.  The script excludes vendor, svn, log, plus sql files and csv files (if you have any).  Also, the script will choke if you're not currently in a rails directory (if you try to run it, vim will produce the cryptic message "E79: Cannot expand wildcards").  This is by design, since a find in the wrong directory can come up with a colossal number of files.&lt;BR/&gt;&lt;BR/&gt;Run :pwd in vim to see your current directory.  Do :Rcd (if you're using vim-rails) or whatever to switch to the appropriate rails directory.&lt;BR/&gt;&lt;BR/&gt;Salt to taste.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default/1701674636670406157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default/1701674636670406157'/><link rel='alternate' type='text/html' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html?showComment=1234379280000#c1701674636670406157' title=''/><author><name>antipode</name><uri>http://www.blogger.com/profile/05422953266132688621</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html' ref='tag:blogger.com,1999:blog-974036606587739553.post-3800563091601252604' source='http://www.blogger.com/feeds/974036606587739553/posts/default/3800563091601252604' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-974036606587739553.post-5869864693662168982</id><published>2009-01-17T10:13:00.000-08:00</published><updated>2009-01-17T10:13:00.000-08:00</updated><title type='text'>Fantastic - very good description, just saved me h...</title><content type='html'>Fantastic - very good description, just saved me hours. Thanks!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default/5869864693662168982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default/5869864693662168982'/><link rel='alternate' type='text/html' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html?showComment=1232215980000#c5869864693662168982' title=''/><author><name>Daniel</name><uri>http://www.blogger.com/profile/17014710602400262373</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html' ref='tag:blogger.com,1999:blog-974036606587739553.post-3800563091601252604' source='http://www.blogger.com/feeds/974036606587739553/posts/default/3800563091601252604' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-974036606587739553.post-1185083951037546135</id><published>2009-01-12T02:27:00.000-08:00</published><updated>2009-01-12T02:27:00.000-08:00</updated><title type='text'>Great! Pretty useful thingThanks.</title><content type='html'>Great! Pretty useful thing&lt;BR/&gt;Thanks.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default/1185083951037546135'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default/1185083951037546135'/><link rel='alternate' type='text/html' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html?showComment=1231756020000#c1185083951037546135' title=''/><author><name>ravikiran</name><uri>http://www.blogger.com/profile/08201010693296234078</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html' ref='tag:blogger.com,1999:blog-974036606587739553.post-3800563091601252604' source='http://www.blogger.com/feeds/974036606587739553/posts/default/3800563091601252604' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-974036606587739553.post-56995437408676290</id><published>2008-08-29T02:15:00.000-07:00</published><updated>2008-08-29T02:15:00.000-07:00</updated><title type='text'>Very useful, thanks!</title><content type='html'>Very useful, thanks!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default/56995437408676290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default/56995437408676290'/><link rel='alternate' type='text/html' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html?showComment=1220001300000#c56995437408676290' title=''/><author><name>Sander</name><uri>http://www.blogger.com/profile/11813415811230249181</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html' ref='tag:blogger.com,1999:blog-974036606587739553.post-3800563091601252604' source='http://www.blogger.com/feeds/974036606587739553/posts/default/3800563091601252604' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-974036606587739553.post-4012645573441312705</id><published>2008-07-29T10:45:00.000-07:00</published><updated>2008-07-29T10:45:00.000-07:00</updated><title type='text'>Yes, thanks for this. I've been using vim for year...</title><content type='html'>Yes, thanks for this. I've been using vim for years. Perhaps I should be embarrassed for not knowing how to do this already, but mostly I'm just happy that I now can. Yay!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default/4012645573441312705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default/4012645573441312705'/><link rel='alternate' type='text/html' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html?showComment=1217353500000#c4012645573441312705' title=''/><author><name>Crunch</name><uri>http://www.blogger.com/profile/02288799739341819306</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html' ref='tag:blogger.com,1999:blog-974036606587739553.post-3800563091601252604' source='http://www.blogger.com/feeds/974036606587739553/posts/default/3800563091601252604' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-974036606587739553.post-5848070162748264553</id><published>2008-07-09T08:05:00.000-07:00</published><updated>2008-07-09T08:05:00.000-07:00</updated><title type='text'>Cool.  This is pretty useful, thank you.</title><content type='html'>Cool.  This is pretty useful, thank you.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default/5848070162748264553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default/5848070162748264553'/><link rel='alternate' type='text/html' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html?showComment=1215615900000#c5848070162748264553' title=''/><author><name>Chris Roos</name><uri>http://www.blogger.com/profile/03644297322747549786</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html' ref='tag:blogger.com,1999:blog-974036606587739553.post-3800563091601252604' source='http://www.blogger.com/feeds/974036606587739553/posts/default/3800563091601252604' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-974036606587739553.post-7617029861538993590</id><published>2008-04-04T08:58:00.000-07:00</published><updated>2008-04-04T08:58:00.000-07:00</updated><title type='text'>This is a very nice overview of this technique. Th...</title><content type='html'>This is a very nice overview of this technique. Thanks for posting it!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default/7617029861538993590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/974036606587739553/3800563091601252604/comments/default/7617029861538993590'/><link rel='alternate' type='text/html' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html?showComment=1207324680000#c7617029861538993590' title=''/><author><name>peterm</name><uri>http://www.blogger.com/profile/07219120879060727160</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.ibrahim-ahmed.com/2008/01/find-and-replace-in-multiple-files-in.html' ref='tag:blogger.com,1999:blog-974036606587739553.post-3800563091601252604' source='http://www.blogger.com/feeds/974036606587739553/posts/default/3800563091601252604' type='text/html'/></entry></feed>