I have a folder named "Folder1" which contains say 10 txt files.
What i am looking for is a script which will parse all 10 txt files and make a csv file with the folder name, so in this example its Folder1.csv
Each line in a csv file represents a txt file , so this csv file should have 10 rows.
The csv has 2 columns only .
Column A -> Holds 1 line of the txt file
Column B -> Holds 2nd line to end of the line in the txt file.
Is it feasible via regex?or something in perl