I have a lot of big text files. And I'm searching (within cmd.exe) for a list of values in them as following:
findstr /i /n /g:strings.txt 1\*.* >results.txt
where strings.txt is the file with all the values I'm looking for and 1 is a folder where all my text files are.
There is valuable information in preceding and next strings to the one that I can find with findstr. Could you please help me writing a script to have 3 lines in results.txt for each match?