One of my favorite idioms for searching for a string:
find /path -type f |xargs grep blah
Has been replaced by `ag` https://github.com/ggreer/the_silver_searcher , ag is instant in a big repo compared to find|grep
Has been replaced by `ag` https://github.com/ggreer/the_silver_searcher , ag is instant in a big repo compared to find|grep
echo -P > $HOME/.ripgreprc
and add this to your .bashrc or equivalent: export RIPGREP_CONFIG_PATH="$HOME/.ripgreprc"grep has a -R option which allows you to avoid the first problem, but avoiding the second one is a bit more difficult.
Also there is ripgrep which I've heard is effectively a faster version of ag written in Rust.
I've tried it but had it crashing on me in some directories so I'm sticking with ag