I need to change the delimiter of a csv file from comma(,) to Pipe(|) Symbol.
Note: Here file separator is also coming inside data string. I need to skip that value i tried one command But it is changing insider comma also awk '$1=$1' FS="," OFS=":" Sample.csv
(I tried this but not giving expected output)
Input > Sample.csv
Col1, Col2, Col3 , Col4
101, XYZ, 2020 , "Hello, World"
102, PQR, 2021, "Help, Me"
Output > Sample_Out.csv should be like.
Col1| Col2| Col3|Col4
101 | XYZ | 2020 | "Hello, World"
102 | PQR |2021 | "Help, Me"