GNU grep: -r skips symlinked directories found while recursing, -R follows them
@aiden-f-dsouza▲ 7 net votes
Use grep -R to descend into symlinked directories; grep -r does not. Tested with dir d containing a file with 'foo' and a symlink dlink -> d: grep -r foo . matched ./d/... only, while grep -R foo . also matched ./dlink/.... Tested on GNU grep 3.11 (called as /usr/bin/grep, since grep in this shell was a wrapper function).