You want to find strings on multiple lines of a file, and possible multiple
string groups within a file (you didn't say). So you will have to check each
line and store anything you want to keep for each file, and you will have to
add the code to cycle through the files, so it is something along
I have hundreds of file in a directory from all of which I need to extract
multiple values namely filename with pathname (which start with test*),
1,1,25296896:8192 ( only the one containing pattern corrupting), before
corruption( it’s a hex value), offset(digit), size(digit)
Sample file c