I have some problems with the following:
I would like to plot many data files, and I found a more or less good script for that
#! /bin/bash
ls *.data | sed "s/.data//" > list
for i in `cat list` ; do
sed -e "s/INPUTFILE/$i/" -e "s/OUTPUTFILE/$i/" \
plot.gnu | gnuplot
done
rm list
plot.gnu
set term postscript enhanced color
set output 'OUTPUTFILE.eps'
set title 'OUTPUTFILE'
p 'INPUTFILE.data' u 1:2 w l
But I have problem with this part
for i in `cat list` ; do
sed -e "s/INPUTFILE/$i/" -e "s/OUTPUTFILE/$i/" \
plot.gnu | gnuplot
done
somehow it cannot update the plot.gnu file as it should be… This sed command does not work properly…
Can anyone help me to solve this issue? Thanks in advance!
Let’s try
Cheers