.bat file for searching through large text files
<p>I have a bat file that looks through large text files that are in the same folder, and dumps strings from what you search. It can search through multiple files, however if there are 2 text files that have what you are searching for, they don't show as separate strings in the output. If someone can find a fix that, it would be awesome</p>

<pre><code>@echo off
title Dumper
color 2
:start
cls
set input=
set /p input= Name To Dump :
findstr /s /i "%input%" *.*  &gt; "%input%_dump.txt"
if %errorlevel%==0 (
echo Dumped All Occurrences For %input% Into %input%_dump.txt
) else (
echo No Data Found
timeout /t 5000
goto start
)
timeout /t 5000
cls
goto start
</code></pre>

<p><a href="http://pastebin.com/MkhpzFu1" rel="nofollow">http://pastebin.com/MkhpzFu1</a></p>

<p>Here is the output I get if I have 2 text files that say test</p>

<p>1.txt:test2.txt:test</p>

<p>Here is the output if I have 1 text file with "test" written twice (the output is how it should look when searching through 2 text files as I did above)</p>

<p>1.txt:test
1.txt:test</p>