美文网首页
2020-07-23 ag和grep忽略指定目录再搜索内容

2020-07-23 ag和grep忽略指定目录再搜索内容

作者: 五大RobertWu伍洋 | 来源:发表于2020-08-27 17:36 被阅读0次

    luli note book run ag on ipCli project and ignore node_modules folder

    ag -i --ignore ./node_modules/ "sea "

    [2020-07-23 00:11.16]  /drives/e/githubProjects/npmCli
    [Administrator.DESKTOP-3NECHC5] ➤ ag -i --ignore ./node_modules/ "sea "
    bin/sea.js
    5:program.run(`node cli sea ${params.join(" ")}`);
    
    lib/cli_pr_search.js
    24:      .command("sea [action] [param]")
    33:    $ cli sea pr _events
    34:    $ cli sea cli md5
    35:    $ cli sea tcp
    
    lib/hotString.js
    97:    $ cli v3 sea runtime
    
    lib/hotStringPr.js
    15:    $ cli v3 sea 20001
    
    modules/hotString.js
    28:const v3search = (v3sea = (service = "elasticsearch") =>
    
    tests/cli/cli_hotString.test.js
    4:const v3searchTest = () => pr.run("node cli v3 sea run");
    
    tests/cli/cli_pr_search.test.js
    4:  it("should print function def of`hi`", () => pr.run("node cli sea cli hi"));
    6:    pr.run("node cli sea md5"));
    

    I download ag.exe online and copy it to mobaxterm /usr/bin

    cp ag.exe to /usr/bin

    https://github-production-release-asset-2e65be.s3.amazonaws.com/97789126/dcfe8780-be9e-11ea-835e-99dd9ff58925?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200722T160900Z&X-Amz-Expires=300&X-Amz-Signature=5b1bf35777adfe085739e9ed1282fad8ee13752ae928ce56e01beb97cd26b89d&X-Amz-SignedHeaders=host&actor_id=0&repo_id=97789126&response-content-disposition=attachment%3B%20filename%3Dag-2020-07-05_2.2.0-58-g5a1c8d8-x64.zip&response-content-type=application%2Foctet-stream

    I use grep and also ignore node_modules folder

    grep -rinH --exclude-dir=./node_modules/ "sea " *

    [Administrator.DESKTOP-3NECHC5] ➤ grep -rinH --exclude-dir=./node_modules/ "sea " *
    bin/sea.js:5:program.run(`node cli sea ${params.join(" ")}`);
    lib/cli_pr_search.js:24:      .command("sea [action] [param]")
    lib/cli_pr_search.js:33:    $ cli sea pr _events
    lib/cli_pr_search.js:34:    $ cli sea cli md5
    lib/cli_pr_search.js:35:    $ cli sea tcp
    lib/hotString.js:97:    $ cli v3 sea runtime
    lib/hotStringPr.js:15:    $ cli v3 sea 20001
    modules/hotString.js:28:const v3search = (v3sea = (service = "elasticsearch") =>
    tests/cli/cli_hotString.test.js:4:const v3searchTest = () => pr.run("node cli v3 sea run");
    tests/cli/cli_pr_search.test.js:4:  it("should print function def of`hi`", () => pr.run("node cli sea cli hi"));
    tests/cli/cli_pr_search.test.js:6:    pr.run("node cli sea md5"));
    

    相关文章

      网友评论

          本文标题:2020-07-23 ag和grep忽略指定目录再搜索内容

          本文链接:https://www.haomeiwen.com/subject/qtqflktx.html