Say I have a folder full of .txt files. Within each text file, there is a line that says the following:
Name: [name here]
So for example, the first three text files could contain Bob Smith, Joe Snow, or Mary Fields in the “Name” field (in the place of [name here]).
I’d like to extract the names into a CSV file that looks like this:
1.txt, Bob Smith
2.txt, Joe Snow
3.txt, Mary Fields
I’m thinking that the command line or Python can help me achieve this, but any help will be appreciated!