linux正则表达式替换
If you are tired of hacking together commands at the terminal or having to open a giant bloated IDE just to perform search and replace across a number of files, then Regexxer is the tool for you.
如果您厌倦了在终端上一起打包命令,或者只需要打开一个庞大的,膨胀的IDE来执行搜索并替换多个文件,那么Regexxer就是您的理想选择。
Reader Sergio turned us on to this great application geared towards programmers, but it could be useful for any hard-core geek, especially since it’s a nice little standalone package.
读者Sergio将我们介绍给了这个面向程序员的出色应用程序,但是它对任何顽固的怪胎都是有用的,尤其是因为它是一个不错的小型独立程序包。
Installation for Debian/Ubuntu
Debian / Ubuntu的安装
sudo apt-get install regexxer
sudo apt-get install regexxer
The great thing about this utility is that you can step through and confirm whether to replace or skip for each file that is found. Just enter your regular expression or keyword into the search box and hit the Find button.
此实用程序的妙处在于,您可以单步执行并确认是否替换或跳过找到的每个文件。 只需在搜索框中输入正则表达式或关键字,然后点击“查找”按钮即可。
The application will find the first file and show you the suggested change in the small textbox below, and you can choose to replace or hit the arrows to go to the next file.
该应用程序将找到第一个文件,并在下面的小文本框中显示建议的更改,您可以选择替换或单击箭头以转到下一个文件。
The only thing that this app is really seriously lacking is the ability to save searches for later use. It’s no PowerGrep, but it’s free and open source.
这个应用程序真正严重缺乏的唯一功能是可以保存搜索以供以后使用。 它不是PowerGrep,但它是免费和开源的。
Visit regexxer homepage at SourceForge
访问SourceForge的regexxer主页
翻译自: https://www.howtogeek.com/howto/linux/simplify-regular-expression-searchreplace-with-regexxer-on-linux/
linux正则表达式替换