rafaelmaeuer
5/16/2017 - 2:09 PM

Read CSV file with bash script - From http://www.theunixschool.com/2012/05/shell-read-text-or-csv-file-and-extract.html

#!/bin/bash
IFS=","
while read f1 f2 f3
do
        echo "OS is        : $f1"
        echo "Company  is  : $f2"
        echo "Value   is   : $f3"
done < file.csv