How do I grep words in all files in a directory?
Answer
You need the -d skip option added on.
Answer
You need the -d skip option added on.
- Grep is searching inside of files. You can search recursively, as you said, if you want to search files inside of a directory.
- By default, grep will read all files, and it detects the directories. …
- Searching just within the parent directory would be grep -d skip “string” ./*