Hi experts,
How can i eliminate double quotes within double quotes from a file in unix?
input
a,""b,"",d,f,""ggh-,"",dshgdg,dhhdhhkhk,""-gh,""
output
a,"b,",d,f,"ggh-,",dshgdg,dhhdhhkhk,"-gh,"
There are somany fields like that in a file. Can anyone please help me out to solve the prob.
Thanks in an advance.
-subhendu-
Shahul
2
$ sed 's/,"/,/g' inputfilename
a,"b,",d,f,"ggh-,",dshgdg,dhhdhhkhk,"-gh,"
Thanks
SHa
Thanks for this ..but it may possible that the comma is present some where else like
input
a,""b,"",d,f,""ggh-,"",dshgdg,""dhhd,hhkhk"",""-gh,""
then what will be the solution?
Shahul
4
you can Use something like this...
sed 's/""/"/g' inputfilename
a,"b,",d,f,"ggh-,",dshgdg,dhhdhhkhk,"-gh,"
a,"b,",d,f,"ggh-,",dshgdg,"dhhd,hhkhk","-gh,"
Thank
SHa