I am having trouble with this pretty simple script that uses here document as an input to the plotting program gnuplot.
for i in file1 file2 file3
set xrange [0:10]
set xrange [0:1]
plot $i u 3:5 w linespoints
The error that I am getting is
./plot.sh: line 11: syntax error: unexpected end of file
Can someone point me out to what is wrong here? Thanks.