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
by nixCraft on October 20, 2012· LAST UPDATED October 20, 2012
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
Tagged as:
vi Find And Replace Text Command
HowTo: Use grep Command In Linux / UNIX [ Examples ]
HowTo: Use Grep Command In Unix / Linux To Search Subdirectories
Search Text File In UNIX
Unix Copy Command Examples [ cp command ]
Linux / Unix: Find All The Files Owned By a Particular User / Group
Linux / Unix: Find Files Modified On Specific Date
Linux / Unix: Use Cat Command To Append Data To a File
Grep Words From a File
Linux / UNIX: Change File Permissions Recursively ( conditional )
Comments on this FAQ are closed. If you'd like to continue the discussion on this topic, you can do so at our forum.