So when you use a batch file to search for substrings in a text file you could use something like the following:
:SearchOne
findstr %~1 %~2 >> output.txt
exit /b 0
If you have multiple search parameter (which all have to match...) you could use:
:SearchTwo
findstr %~1 %~2 | findstr %~3 >> output.txt
exit /b 0
How can I search for multiple numbers of search keys whose numbers aren't fix?
like for example:
for 3: findstr %~1 %~2 | findstr %~3 | findstr %~4 >> output.txt
for 4: findstr %~1 %~2 | findstr %~3 | findstr %~4 | findstr %~5 >> output.txt
and so on...?