I've installed unixutils,and grep string * can search string in the current directory,

but how to make it search recursively?

link|improve this question

0% accept rate
feedback

2 Answers

Use the -R switch for a recursive search (or -r or --recursive).

from the man page:

-R, -r, --recursive
          Read all files under each directory, recursively; this is equiv-
          alent to the -d recurse option.
link|improve this answer
feedback

Alternatively, if you don't need grep-specific functionality: Windows supports this out of the box anyway:

findstr /s "string"
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.