Re: extract values from a csv file

From: deva (devasingh_at_gmail.com)
Date: 06/06/05


Date: 6 Jun 2005 07:05:16 -0700

Hi ALL,

  Thanks for your email, The reason I asked to store the values into
individual variables, because I need to execute another shell script
which requires these values as parameters. so I need to parse the csv
file
line by line and store the values into variables and then execute the
another script with these values as parameters. By the way my csv file
consists of fixed columns.

For example File.csv consists of
ab,230,david,450
gh,430,jack,678
aa,560,sam,340

while EOF
parse csv
var1 = ab,var2 = 230,var3 = david,var4 = 450
testsms var1,var2,var3,var4
till EOF

I want something like this.

Thanks in advance
Deva