Hi Guys ,
I have a comma saperated text, say ,
aaaaa,a123,345,x3e345r,,,wer,234
bbbbbb,f345,89000,,,,,g45,34
in a file.
** Using only sed ** , I want to convert the same to ,
"aaaaa","a123",345,"x3e345r",,,"wer",234
"bbbbbb","f345",89000,,,,,"g45",34
here ,
1) empty commas should remain as they are
2) the values which are alpha-numeric they should only be enclosed by "
3) pure numeric values should remain as they are
Can you please help me ??
Regards
I have a comma saperated text, say ,
aaaaa,a123,345,x3e345r,,,wer,234
bbbbbb,f345,89000,,,,,g45,34
in a file.
** Using only sed ** , I want to convert the same to ,
"aaaaa","a123",345,"x3e345r",,,"wer",234
"bbbbbb","f345",89000,,,,,"g45",34
here ,
1) empty commas should remain as they are
2) the values which are alpha-numeric they should only be enclosed by "
3) pure numeric values should remain as they are
Can you please help me ??
Regards