加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

如何在Windows上的git bash(msy??sgit)中完全运行grep?

发布时间:2020-12-14 02:46:49 所属栏目:Windows 来源:网络整理
导读:我想使用grep -o,但在git bash中没有-o选项.有没有办法在git bash中获得完整的grep,就像它在 linux bash shell中一样? 解决方法 grep没有-o标志 http://pubs.opengroup.org/onlinepubs/9699919799/utilities/grep.html 您可以使用sed代替
我想使用grep -o,但在git bash中没有-o选项.有没有办法在git bash中获得完整的grep,就像它在 linux bash shell中一样?

解决方法

grep没有-o标志
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/grep.html

您可以使用sed代替

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读