: !/bin/sh cat m1.csv | \ awk -F',' '{ #print NF #if ( NF == 27 ) # print $0 totcost += $26 } END { printf("totcost = %02f\n", totcost) }'