Use spaces to separate multiple search strings. To search for “hello” or “here” in file xyz.txt

findstr “hello here” xyz.txt

 

To search every file in the current directory and all subdirectories that contained the word Table and ignores the case sensitive.

findstr /s /i Table *.*

 

To search every file in the current directory and all subdirectories that contained the phrase “Table Ball Walk” and ignores the case sensitive.

findstr /s /c:”Table Ball Walk” *.*

 

To search all occurrences of lines that contain the word “HELLO, and include the line number where each occurrence is found.

findstr /b /n /c:” *HELLO” *.txt