My intention is to have loaded variable i in for cycle - I want to have it usable for this cycle. Current state is that gnuplot loads var i from the first echo as a string not var.
SPEED=5
echo "plot '< head -n \"\$((SPEED*i))\" `echo ${INFILE}`' using 1:3 ;">> file.plt
for ((i=1;i<="$FRAMES";i++))
do
echo "
load '`echo ${file.plt}`';
" | gnuplot
done
echoin`echo ${INFILE}`and`echo ${INFILE}`necessary? Why don't you just incorporate the variable by itself?iis your loop iteration variable. Is that the same as theiin the multiplication (SPEED * i)?ifrom multiplication byivalue from loop