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

If you don't mind using PCRE, you can do it. For example:

    rg -P '(?=.*pat1)(?=.*pat2)(?=.*pat3)'
You could create a shell function shortcut if you need to use it often. But yeah, having it as a feature of the tool itself would be nice.


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

Search: