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


当前回答

在windows reskit中有一个名为“qgrep”的实用程序。你的盒子上可能已经有了。;-)它还带有“尾巴”命令,感谢上帝!

其他回答

Oak Road Systems提供了一个商业grep实用程序。

Cygwin grep和更多;)

在Windows上,我使用Far Manager进行文件搜索。BSD许可,在控制台工作,节省输入cmdline参数的时间。下面是Alt-F7调用的搜索对话框。

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.

如果你必须使用纯Windows,那么除了上面提到的Powershell选项,你还可以使用VBScript,它有很好的RegEx支持。

MS在Technet上还有一个不错的脚本编写区,为管理员提供了大量的示例。