搜索shell脚本

搜索包含两个0的字符串的行,如下所示:

grep -n 'o{2}' README.md

21:Choose one of the following options:
47:* An optimized version of the Google Universal Analytics snippet.
73:Take a look at the documentation table of contents.

参数说明

- grep 查询命令你
- n
- 'o{2}'
- README.md 这是要查询的文本文件

posted @ 2019-01-09 00:39  信念&坚持✊  阅读(156)  评论(0)    收藏  举报