Have very large file that contains random number of lines (strings) between a pattern in the file for example INS. I need to capture all the lines starting with the patter "INS" up to before the next INS. Not sure if, Select-String, or ,Where-Object, is the proper method. Not really sure where to start with this one.
How many instances of the pattern will there be in the file? Always two? Or more?