I am trying to extract certain texts based on surrounding words/patterns and output the information to a file called sample.csv.
For example, I have a directory of fi