I have a 2-line CSV file. 1 line is the header, one line is the data. This was pulled from an asset database while looking for data for just one asset. However, please note that the CSV file could conceivably contain more than just 2 lines.
I need to take the CSV (example below) and print each header entry on a separate line, with the matching data entry on the same line.
Sample CSV data
head1,head2,head3,head4
data1,data2,data3,data4
Sample output
head1 data1
head2 data2
head3 data3
head4 data4
How can this be done simply?