I want to cut an array column in a CSV file. For example if you see the below CSV file
input.csv
1,2,"{1,2,3}",1
3,4,"{3,9,1}",2
8,9,"{10,12,30}",3
I want the output as
output.csv
1,2,3
3,9,1
10,12,30
I tried using cut -d , -f 3 input.csv
and cut -d { -f 3 input.csv but both did not work .Any help is appreciated.Thanks in advance.