Wednesday, January 30, 2013

How to use grep with files located within subfolders

If you want to search multiple files for lines with a specific string within all the subfolders of a current folder use grep with -r option:

grep -r "string" .

No comments:

Post a Comment