Windows command find : looking for a string OR another
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.
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.