I'm trying to loop a file using a delimiter with a ',' and the print out those values in a list but I'm not sure how to get all the values of delimiter.I have a file with emails like this (all in one line):test1@mail.com,test2@mail.com,test3@mail.comand my script is like this:EmailsFile=/dev/fs/C/Users/myuser/Desktop/EMAILSTOREAD.txtfor email in $(cat ${EmailsFile} | cut -d , -f 1-100)do   echo ${email}\ndoneI did 1-100 due I'm not sure how many values could have the file.the output that I'm getting is:test1@mail.com,test2@mail.com,test3@mail.comExpected output:test1@mail.comtest2@mail.comtest3@mail.comAny idea?
How to loop a line of values using ',' and the print it as a list
shell;ksh;cat;cut;for
A solution is: awk '{ gsub(,,\n); print $0 }' $EmailsFile