I have 2000 txt files that I need to read the first line of (it should contain a person's name).
Ideally I would have a spreadsheet/csv with
FILENAME, FIRST LINE OF FILE
Under Windows, you can do this with a batch file:
If you want the filename without the extension, change the for loop to this:
The best I came up with was
Perl works on Windows as well as Unix,Linux,etc - but you may need to install it first.