====== Read comma separated file (CSV) within bash script ====== #!/bin/bash IFS=, while read field1 field2 do echo "field1 : $field1" echo "field2 : $field2" done < filename.csv References [[http://www.cyberciti.biz/faq/linux-unix-appleosx-bsd-shell-parse-text-file/]] [[http://www.cyberciti.biz/faq/unix-linux-bash-read-comma-separated-cvsfile/]]