Top "Findstr" questions

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

Findstr - Return only a regex match

I have this string in a text file (test.txt): BLA BLA BLA BLA BLA Found 11 errors and 7 warnings I …

regex cmd findstr
Windows CMD: How to pipe running program output to FINDSTR and write to file

I am trying to filter the output of a running program (ping) and write the results to a file. In …

command-line cmd pipe findstr windows-console
How to delete the first line of a file using Batch?

How to delete the first line of a file using Batch? I really need help... I've tried everything but it …

batch-file cmd text-files findstr
Remove part of string in file using batch

I have some data in a text file (test.txt), reading: wantedunwanteddata I want to remove the "unwanted" part in …

batch-file findstr
How can I use findstr with newline regular expression

I'm on windows dos prompt. I have log file which contains log like: Timestamp: Order received for Item No. 26551 Timestamp: …

windows regex dos findstr
Why does findstr not handle case properly (in some circumstances)?

While writing some recent scripts in cmd.exe, I had a need to use findstr with regular expressions - customer …

windows regex batch-file cmd findstr
Windows Batch: Search all files in file, if line contains "apple" or "tomato" echo it

I'm trying to write a simple batch that will loop through every line in a file and if the line …

windows batch-file cmd findstr
Batch findstr to find a number

I'm trying to get the revision number from a svn update command output. In the file tmpFile.txt I've got …

batch-file findstr
How to force `findstr` to ignore `Cannot open` returns

I'm trying to use findstr to search inside a folder looking for some string: findstr /spin /c:"string" * however it …

windows cmd findstr
How to use OR operator with command FINDSTR from a Windows command prompt?

Findstr is supposed to support regular expressions and the way I am using it I need to have an OR …

windows command-line findstr