My target a.csv and its content example is below:
2020-02,Platform,Framework,ID,"8.0,8.1,9,10",N/A,path
2020-03,Platform,Framework,ID,10,N/A,path
2020-04,Platform,Framework,ID,20,N/A,path
My command is below:
$target_string | tr "," " "
I want to change each line of csv file to array list. When I change strings of line to array, I got some problems that I split string inside double quotes as well. Because my command is changing all the commas to " ". How do I escape commas inside double quotes when I change string to array in bash shell?