I have a CSV file as
input.csv
1,2,3,"{1,2,3}",9,12
1,2,3,"{1,2,3}",9,12
1,2,3,"{1,2,3}",9,12
I needed to remove the array column from the above CSV file and get the output as
output.csv
1,2,3,9,12
1,2,3,9,12
1,2,3,9,12
So I tried
cut -d , -f4 -- complement input.csv > output.csv
But the above command gave the error
The delimiter must be a single character
I also want to join the output.csv with another CSV file
column.csv
30
36
90
Then the result would look like
result.csv
1,2,3,9,12,30
1,2,3,9,12,36
1,2,3,9,12,90
Could anyone help me?