Recursive grep skips / excludes / ignores all subdirectories
This is still my dumbest question. I'm sure this is stupidly obvious, but for my life I couldn't find a solution.
I just want to search all files in my current directory for a template, ignoring all subdirectories. Things I've tried:
grep "mytext" .
→ complains about it. this is a directory
grep -r "mytext" .
-> searches all subdirectories
grep "mytext"
→ just freezes (looking for the whole car?)
grep -rd skip "mytext" .
→ skips the current directory
+3
source to share