use awk to read variable length csv

Any help to read the contents of a variable length csv ....??(using awk)
The csv mite look like this :

anjali,ram,rahul,mohini,sam,.... and so on ...
I need to pick up each name..

Thanks in advance
SD

assuming no embedded commas...

BEGIN {
  FS=OFS=","
}
{
  for(i=1; i<=NF; i++)
    printf("Field %d -> [%s]\n", i, $i)
}

Thanks a ton.... :slight_smile:

Hi,

Can u plz post me the pdf of Unix Shell proramming by Yashwant kanetkar.

Thx a lot in advance

by iliyas