If you want to create an animation, you better use specialized tools for it (for example, mplayer).
gnuplot ( , - ..), mplayer convert (from imagemagic) avi GIF .
, .
file="your input file.dat"
lines=$(wc -l $file)
i=1
while [ $i -le $lines ] ; do
head -${i} ${file} > ${file%.dat}-${i}lines.dat
done
somefile.dat, "somefile-1lines.dat", "somefile-2lines.dat" .. :
for f in *lines.dat ; do
gnuplot ... $f
done
.
, , , , , gnuplot stdin, scipt (name it paused-input.sh) :
#!/bin/bash
while read l ; do
echo "$l"
sleep 1
done
:
(pause-input.sh | gnuplot ...) < somefile.dat