I want to rename the header of a csv file using bash script. Original csv file header looks like below:
temp.csv
,id,too,Issue,Valid,DPT,RH,TMP,U,V
1,1,22383,2015-01-15 00:00:00 GMT,2015-01-15 00:00:00 GMT,269.8000183,80.90000153,272.6300049,3.039999962,-0.560000002
1
id to Issue Valid DPT RH TMP U V
1 2 3 4 5 6 7 8 9 10
I
want to rename column header as below:
Cell id too Issue Valid DPT RH TMP U V
1 2 3 4 5 6 7 8 9 10
tail -n +2to output original csv file from the second line.