Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Using the find command, I'd like to look for a string or another.

It seems this is not possible, but I'd like to make sure I didn't overlook a way to do it.

share|improve this question
Do you mean DOS or CMD? – Bobby Sep 30 '10 at 19:32
I mean CMD ! I updated my question – Jérôme Oct 1 '10 at 8:01
up vote 5 down vote accepted

If, by chance, you are talking about Windows command line (which is not DOS), then there is findstr:

findstr "one two three"

Yes, quoted as single argument. Alternative syntax which allows spaces in strings:

findstr /c:"one" /c:"two"

findstr claims to support regular expressions, but I could not get one|two to work.

share|improve this answer

I don't believe you can do this with the dos find command.

However you can do this with grep - there's a windows/dos version of grep available with the GNUWin utilities at Sourceforge.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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