在多个文件中替换 - Linux 图形工具 [英] Replace in multiple files - graphical tool for Linux
问题描述
它需要是图形化的.没有 sed、awk、grep、perl 等等.我知道如何使用它们,我现在确实在使用它们,但我需要在 300 多个文件中挑选每个替换.
我想要一个我可以使用的工具:
- 输入搜索字符串
- 输入替换字符串
- 选择目录和文件扩展名
它会递归地进入该目录及其子目录中的每个文件,打开它并滚动到搜索字符串所在的位置并提供两个选项:
- 替换(并找到下一个)
- 查找下一个
仅此而已.正则表达式支持是一个加分项,但不是必需的.
已解决:Regexxer 正是我所需要的.如果有人在 Slackware 上需要它,
It needs to be graphical. No sed, awk, grep, perl, whatever. I know how to use those and I do use them now, but I need to cherry-pick each replace in 300+ files.
I want a tool where I can:
- type a search string
- type a replace string
- select a directory and file extension
and it would recursively go into each file in that directory and its sub-directories, open it and scroll to the place where search string is and offer two options:
- replace (and find next)
- find next
Nothing more. Reg.exp. support is a plus, but not required.
SOLVED: Regexxer is exactly what I needed. In case someone needs it on Slackware, here's what you need to download and how to compile it (choosing correct version of each dependency can be a PITA)
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:
这篇关于在多个文件中替换 - Linux 图形工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!