Hie, i have 3 csv files like shown below
datetime, forecast
2016-02-02 00:00:00, 23.34
2016-02-02 00:10:00, 29.23
timestamp, forecast, v1, v2
2016-02-02 00:00:00, 68.56, 012, .23
2016-02-02 00:10:00, 23.24, .25, .32
timestamp, forecast[ma], v1
2016-02-02 00:00:00, 56.32, 32
2016-02-02 00:10:00, 25.21, 56
i want my output to have
Time, Forecast, forecast1, forecast2
2016-02-02 00:00:00, 23.34, 68.56, 56.32
2016-02-02 00:10:00, 29.23, 23.24, 25.21
i have created codes to combine these file in xlsx with python. now that i am planning to process these files further with shell i want this files to be in csv.
i tried codes like.
join -j 2 -o 1.1,1.2,2.2 <(sort -k2 $path_DMS/$file_name) <(sort -k2 $path_ISRO/$file_name)
thanks