搜索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](dist/doc/TOC.md).

参数说明

 - grep  查询命令你
 - n
 - 'o{2}'
 - README.md   这是要查询的文本文件
原文地址:https://www.cnblogs.com/MeiCheng/p/10242198.html