I want to grep -R a directory but exclude symlinks how dow I do it?
grep -R
Maybe something like grep -R --no-symlinks or something?
grep -R --no-symlinks
Thank
If you're using an older grep that does not have the -r behavior described in Aryeh Leib Taurog's answer, you can use a combination of find, xargs and grep:
find
xargs
grep
find . -type f | xargs grep "text-to-search-for"