Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

My sibling comment suggested --vimgrep, but that will print each match on its own line. For example:

    $ echo foofoo | rg foo --vimgrep
    <stdin>:1:1:foofoo
    <stdin>:1:4:foofoo
What you want is probably `--no-heading`. You can add it to a config file or an alias if you always want it enabled: https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#c...


that's it, thank you!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: