|Well the code above is not really based on lines. It is based on the variable. For example the findstr 1 will pull any string with 1 in it throughout the document. So if there is any sort of common variable in multiple documents that you are looking for, replace the 1, 2, & 3 with the desired variable. You can also add in options after findstr to help narrow it down:|
/I Case-insensitive search.
/S Search subfolders.
/P Skip any file that contains non-printable characters
/L Use search string(s) literally.
/R Use search string(s) as regular expressions.(default)
/B Match pattern if at the Beginning of a line.
/E Match pattern if at the END of a line.
/X Print lines that match exactly.
/V Print only lines that do NOT contain a match.
/N Print the line number before each line that matches.
/M Print only the filename if a file contains a match.
/O Print character offset before each matching line.
/a color_attribute Display filenames in colour (2 hex digits)
I hope this kind of answers your question, if not let me know and we will try to narrow it down