The “find” command usually reports too much information, because
1 |
find "some_text" *.* |
also reports names of the files that do not contain the text.
A useful oneliner to have at hand is to start a cmd.exe window in the right folder, and enter:
1 |
for %I in (*.*) do @(find /i "some_text" "%~I">NUL&&echo %I) |
If you need this to work recursive, use:
1 |
for /f %I in ('dir /b /s *.*') do @(find /i "some_text" "%~I">NUL&&echo %I) |