Originally Posted by pklcnu
Dear Experts I am new to the linux please help me with the following
I am transfering a csv file with the double quotes as quote character from Linux to Windows during this process one of the columns data is getting disturbed and written to more than one column due to the presence of comma between the double quoted column data. How can I delete the comma present with in the column data before I transfer the file from Linux to Windows. I tried few 'sed' commands but no luck.
Thanks very much in advance.
Going to have to provide more information, before anyone can help you. What version of "the linux" are you using? What distro? And you say you are transferring a file between Linux and Windows...how are you transferring it? How is the file getting created in Linux? What are you reading the file with in Windows??
Chances are, the file isn't getting corrupted in transfer, and affecting just one column. Since you don't say how you're generating it, it's hard to give options, but you could try to generate a tab-delimited file, then run it through sed to strip out the commas, and sed it again, to replace the tabs with commas, leaving you with a 'sanitized' file.
Without having any real information or samples of data, it's hard to say.