我已经用bash编写了这个脚本
for f in $FILES
do
echo "Processing file... $f"
# take action on each file. $f store current file name
B=$(basename $f)
filename="${B%.*}"
mkdir $BASEDIR/$RESULTS/$filename
./../graphic_file_gen $f > $BASEDIR/$RESULTS/$filename/data.txt
cd $BASEDIR/$RESULTS/$filename/
gnuplot << EOF
do for [i=0:33] { number = i-2 set term png set output "fotorivelatore".number.".png" unset key set title "Fotorivelatore ".number plot [:16384] [:40000] 'data.txt' using 0:i with linespoints } EOF
#./../test2 $f
cd $BASEDIR/$DECADIMENTI/
done
但这给了我这个错误:
Syntax error: end of file unexpected (expecting "done")
我该如何解决?
把你EOF
在一个新行
参见这里文件。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句