How tocreate a script file which will automatically create accounts from a csv file
Whats called accounts here? Please elaborate your requirement.
Something like this, if you have a utility called useradd (can also be adduser or something different) on your system...
while IFS=, read var1 var2 var3....
do
useradd bla bla bla "$var1" ...
done < csv-file