Windows命令提示符中是否有与grep类似的实用程序,或者是否有第三方工具?
当前回答
如果你想要一个GUI, Bare Grep是不错的选择。Gnu grep适合CLI
其他回答
DR:撕裂握把
自2009年以来,发生了很多事情。Rust提供了许多CLI实用程序,其中包括ripgrep。它被宣传为递归搜索目录的regex模式,支持Windows, MacOSX和Linux。
它很快。看看与类似工具的性能比较。对工具的设计也有很多解释。信息量很大,也很怪。=)
支持POSIX grep工具支持的广泛特性。看看ack作者的比较。
如果你有Scoop,你可以用Scoop install ripgrep安装它。否则请转到文档的安装部分。
PowerShell(在Windows 7/2008R2中作为标准包含,在XP/2003/Vista/2008中是可选的),它为此目的包含了select-string cmdlet。
使用Cygwin……
它有32位和64位版本 它在Windows 2000中工作良好(*) Windows 10或Server 2019
我用Cygwin很久了…… 最近尝试用windows - linux -子系统来替代…
不会太久…… 我很快又回到了Cygwin……
更加灵活、可控和丰富…… 也不那么打扰…
只需将\bin添加到路径… 你可以在Windows/Batch/Powershell中使用它… 或者在DOS-Box里…或者装在powershell盒子里…
你也可以安装很多很棒的软件包 这真的有用……比如nginX或PHP… 我甚至在我的IIS中使用Cygwin PHP包…
作为奖励,我们也可以在bash shell中使用它… (我认为这是最初的意图;-))
试试LikeGrep java实用程序。 它可能在很多情况下对你有帮助。 如您所愿,它还可以替换文件中的一些文本。 它保证它的工作在大文件(高达8 Gb测试)
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.
推荐文章
- 我如何找到哪个程序正在使用端口80在Windows?
- 在Windows中有像GREP这样的模式匹配实用程序吗?
- 如何在Windows命令提示符下运行.sh ?
- 如何从命令行将每两行合并为一行?
- 如何从命令行在windows中找到mysql数据目录
- 匹配前后的Grep字符?
- (grep)正则表达式匹配非ascii字符?
- 在没有事件源注册的情况下写入Windows应用程序事件日志
- 如何从另一个文件A中删除文件B中出现的行?
- 无法在Windows上从/usr/local/ssl/openssl.cnf加载配置信息
- GIT克隆在windows中跨本地文件系统回购
- 如何运行一个PowerShell脚本而不显示窗口?
- PowerShell:仅为单个命令设置环境变量
- 为什么这个Windows批处理文件只执行第一行,而在命令shell中执行所有三行?
- 环境变量存储在Windows注册表的哪里?