linux正则表达式替换_在Linux上使用Regexxer简化正则表达式搜索/替换

linux正则表达式替换

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.

该应用程序将找到第一个文件,并在下面的小文本框中显示建议的更改,您可以选择替换或单击箭头以转到下一个文件。

image

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正则表达式替换

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值