I have several output files (*.out) contain a lot of information. I would like to have a program can just sort specific data from each output file and save them to the same filename with txt extension file.
While reading each line (from *.out) if you are on a line that says "state summary:" then save next 10 lines (into *.txt). Please advise. Thanks!