file=$1/simlog.csv out=$1 n=${n=4} sub() { n=$1 shift title="$*" fout="${out}/${title}.png" cut -d, -f $n $file| sed '1d' > /tmp/$$.dat gnuplot<