Windows命令提示符中是否有与grep类似的实用程序,或者是否有第三方工具?


当前回答

最近,我们使用PowerGREP对数千个文件进行了一些相当高级的批量操作。包括PDF文件内容的正则表达式搜索,以及大规模修改PDF文档。

如果你想节省体力劳动的时间,它值这个钱。我认为你可以在买之前试用一下。

其他回答

Cygwin grep和更多;)

Yes there is only one program for Windows PC which have solid GUI and it is essential util for me. I work as a developer and on every computer I've had, first thing install XFind program. It is created in 1997 and till now version is 1.0 and till now works and it is the best. Frequently I need to search some string in a ".cs", ".aspx", ".sct" (Visual FoxPro form code file) or just ".*" and XFind scans all files and show me files and another great thing is that you can look where string is in the file. XFind has also some kind of editor. If it binary file it will show you string finded. Try it and use it forever if you are developer like me.

我将把我的0.02美元添加到这个线程中。dnGREP是一个很棒的开源grep工具,它支持撤销,windows资源管理器集成,在pdf, zip, DOCs和其他一堆东西里面搜索…

如上所述,gnuwin32项目有一个Windows CLI版本的grep。

如果你想要图形界面,我会推荐(开源)工具AstroGrep。

如果您不介意付费产品,PowerGREP是我个人的最爱。