Use grep command recursively to find text including all subdirectories

by on October 20, 2012 · 0 comments· LAST UPDATED October 20, 2012

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

TwitterFacebookGoogle+Found an error/typo on this page? Help us!

Examples and usage: HowTo: Use Grep Command In Unix / Linux To Search Subdirectories

{ 0 comments… add one now }

Leave a Comment

Tagged as: