Use grep command recursively to find text including all subdirectories

Fig.01: grep in action

Fig.01: grep in action

Use the grep command recursively to go through all sub-directories under Linux / Unix / BSD / Apple OS X operating systems.

Example:
grep -r 'word' /path/to/dir

Leave a Comment