Simply just want to change few column names in a csv file and store it as it is using this code:
sed -i -e "1s/oldcolname/" -e "1s/newcolname/" xxx.csv
.
But it does not work. I got the error message :
sed: 1: "1s/oldcolname/":unterminated substitute in regular expression
.
Anyone knows how to rewrite it? Thanks!