Replace in multiple files - graphical tool for Linux

拟墨画扇 提交于 2019-12-05 00:01:16
Jay

I think regexxer is exactly what you're looking for:

Regexxer

regexxer is a nifty GUI search/replace tool featuring Perl-style regular expressions. If you need project-wide substitution and you’re tired of hacking sed command lines together, then you should definitely give it a try.

See also the screenshot, looks a lot like what you're describing:

Emacs + dired + query-replace-regexp

For complete recipe follow this link (it's rather long, covering all possible alternatives),

jEdit does exactly what you need. It is written in Java and works well in Linux, Windows and OS X (probably other operating systems also).

I use gVim for this task all the time. I open up all the files at once, then use the commands to perform a subsitution on each file, asking for confirmation. Generally I use < 20 files, so I open them as tabs and use this:

:tabdo %s/foo/bar/gc

gVim works fine on Windows :) My coworkers often use Textpad to do this same thing, but I'd say gVim is much more efficient at it.

Lately Kate (if you use KDE) can do it, but in a very tricky way. Go to "Edit>Search in Files", and choose the folder within which your files exist.

The trick is that only after the search results appear, you will find a text box and a button called "Replace checked". This button will do what you want.

If you are a KDE user there's also kfilereplace.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!