I have two CSV files. One of which contains a lot of data:
main.csv
Order No.,invoiceNumber,invoiceAmount,invoiceAmountNet
20001,20010,500,5
20002,20011,400,4
20003,20012,300,3
20004,20013,200,2
20005,20014,200,1
While my other CSV file has less information:
october-2020.csv
Order No.,Timestamp,ID
20001,2020-10-01 12:00:00,123456
20002,2020-10-02 13:00:00,123457
And my goal is to create a new CSV file based on october-2020.csv and adding information from main.csv. The common information is the Order No.:
output.csv
Order No.,invoiceNumber,invoiceAmount,invoiceAmountNet,Order No.,Timestamp,ID
20001,20010,500,5,20001,2020-10-01 12:00:00,123456
20002,20011,400,4,20002,2020-10-02 13:00:00,123457
How could this be scripted? I appreciate any help.