#! /bin/sh # # generate data and plots # #labels="$labels\nset xrange [0:260]" mkdir -p data echo "1 2 1 set xtics 1 1 3 1 2 3 1 2 4 1 2 6 1 2 8 1 set xrange [0:275]" | while read n m t options do echo "$n $m $t" f="data/$n-$m-$t" ./count "$n" "$m" "$t" > "$f.txt" P=$(grep "^count: pt =" "$f.txt" | awk '{ print $4 }') ./plot.sh "P = $P n=$n, m=$m, t=$t" "$options" < "$f.txt" > "$f.gif" done