Nguyễn Việt Thắng
New member
How do I grep a string in a directory?
Answer
How to use “grep” command to find text including subdirectories
Answer
How to use “grep” command to find text including subdirectories
- grep -RIn <yor pattern> * Will search from current directories down in all text files.
- Wildcard with –include=”*.C” option, @user311346, thanks to @Lekensteyn. –
- Use the find and grep combination to recursively search files for a string in current and all sub directories.