Top "Findstr" questions

findstr is a Windows command that searches for patterns of text in one or more files using regular expressions.

Windows 'findstr' command: Exclude results containing particular string

To the command findstr str1 *.* I want to add something that will exclude the results which contain the string str2. …

windows command-line findstr
Search for string within filename in subdirectories

I have a large directory of folders (call it C:\Main). I need to set up a batch script to …

batch-file findstr
write results into a text file

I created a batch that will use windows FINDSTR to search for my selective input. I am trying to log …

batch-file findstr
findstr exit codes/errorlevel

I have a program that is using findstr, and when the string is found the errorlevel returns 0 and when the …

cmd exit-code findstr errorlevel
How to search for the exact match of string(s) using the windows `findstr` command?

How to search for the exact match of string(s) using the windows findstr command? For example: I need to …

windows batch-file cmd findstr
How to match IP address by using 'findstr'? Or any other method of batch in windows

    As the title said, I want to match ip address with batch in windows, please tell me how I can …

windows batch-file ip ip-address findstr
Escaping a quote in findstr search string

How can I properly escape a quote in a search string when using findstr.exe? Example: findstr /misc:"namespace=\"" *.cs &…

batch-file escaping quotes findstr
Why doesn't this FINDSTR example with multiple literal search strings find a match?

The following FINDSTR example fails to find a match. echo ffffaaa|findstr /l "ffffaaa faffaffddd" Why?

batch-file cmd findstr
findstr Windows command regular expression

Is there a way to search for 2 or more spaces in a row between letters, using findstr from the Windows …

windows command-line findstr
findstr or grep that autodetects chararacter encoding (UTF-16)

I want to do this: findstr /s /c:some-symbol * or the grep equivalent grep -R some-symbol * but I need the …

unicode windows-xp windows-vista utf-16 findstr