From a unix shell scripting file, I want to extract the values in a csv file. Suppose, I have a csv file values.csv with headers V1, V2 and N like below:
"V1","V2","N"
"0","0",216856
"1","0",16015
"0","1",25527
"1","1",10967
I want to extract the column N values and assign it to a variable in a unix script file. For example,
a = 216856
b = 16015
c = 25527
d = 10967
How will you pull the values of N and assign to the variables a,b,c,d in a shell script file? Please help. Thanks in advance.