I have a csv file that contains below lines:
23000747,,2015582,-375080.2254,-375080,-375080
23000749,,SA1555,"-30,448,276","-30,448,456","-30,448,239"
I'd like to remove the double quotes and commas from all the quoted columns so that the result will be something like below:
23000747,,2015582,-375080.2254,-375080,-375080
23000749,,SA1555,-30448276,-30448456,-30448239
I have managed to be able to locate the parts on which I want to remove the comma using below command, but I couldn't figure out how to do s/,//g and s/"//g on \1.
sed 's/\("[-,0-9]*"\)/#\1#/g' 1.txt
23000747,,2015582,-375080.2254,-375080,-375080
23000749,,SA1555,#"-30,448,276"#,#"-30,448,456"#,#"-30,448,239"#
Really appreciate if anyone can help here.
Jack