Block oriented search and replace across multiple files.
brian.mckee at gmail.com
Sat Nov 28 16:51:55 UTC 2009
On Sat, Nov 28, 2009 at 10:10 AM, Ray Parrish <crp at cmc.net> wrote:
>>> I am searching for a programmer's editor that does block oriented
>>> search, and replace across multiple files.
>>> What I want to be able to do is replace several lines of text with
>>> several other lines of text in all open files all at one go.
>> Emacs and Eclipse both support multi-line regex expressions. I'm rusty
>> on Emacs, but with Eclipse just use "(?ms)StartPhrase.*StopPhrase" to
>> match the paragraph, then replace with whatever you want. Add anchors
>> as needed.
> I have Eclipse on here, but it is a bit over the top for what I want to
> do, which is make broadcast changes to my web site's pages. I'm going to
> forego the learning curve, and the necessity to remember regular
> expressions by writing my own multi document, block oriented search, and
> replace program that will allow me to paste in what I want to replace,
>and paste in what I want it replaced with, and the program will take
> care of searching, and replacing for me.
That's the easy way? :-)
vim will certainly do that, and you almost certainly have it already.
Be happy to help if you give a little more example so I get it right for you...
All you need to know about Ubuntu 9.04 Jaunty -> gconftool -s --type bool /apps/update-notifier/auto_launch false
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 271 bytes
Desc: OpenPGP digital signature
More information about the ubuntu-users