
stackexchange.com
https://unix.stackexchange.com/questions/554595/ho…
shell script - How to iterate a CSV file in bash? - Unix & Linux Stack ...
First of all, avoid doing text-parsing with shell loops. It is hard to do, easy to get wrong and very hard to read. And slow. Very, very, slow. Instead, use something like awk which is specifically designed to read by "fields". For example, with this input file: foo, bar, baz oof, rab, zab You can read each comma-separated field using awk -F, to set the field separator to ,: $ awk -F, '{ print ...