Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

but how to make it search recursively?

share|improve this question

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.
share|improve this answer

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

findstr /s "string"
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .