X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Ftext%2Fcsv_to_array.sh;h=021891d0947ad6267ddca2078e24d72930fb2424;hb=c02e632d0e6514ccaad532b79022e9172a3cd00b;hp=7c114c4803a9742445253bc9effc5db62961584c;hpb=2952ccf47b80174880141a7ecfa122089f349b8d;p=feisty_meow.git diff --git a/scripts/text/csv_to_array.sh b/scripts/text/csv_to_array.sh index 7c114c48..021891d0 100644 --- a/scripts/text/csv_to_array.sh +++ b/scripts/text/csv_to_array.sh @@ -40,10 +40,10 @@ function parse_csv_line() for i in $*; do echo reading $i - while read line; do -# echo line is $line + while read input_text; do +# echo input_text is $input_text csv_split=() - parse_csv_line "$line" + parse_csv_line "$input_text" if [ ${#csv_split[*]} -lt 1 ]; then echo did not see any fields in the split array.