|
From: <br...@ph...> - 2006-08-27 21:38:18
|
pau wrote:
> Hi Hans-Bernard,
>
> I did what you suggested and do the extra-gawk thing out of gnuplot. Now for
> each data file named "Splotch4_0010_part.asc" I have an additional one
> containing only the information of the row I looked for with gawk:
> "Splotch4_0010_part_b.asc"
You went a bit too far. You should just remove the awk command line
from gnuplot's view, not create an intermediate data file. The idea was
to can that awk command into a separate script and then replace
> plot "< zcat $f" using 3:4 with dots lt 8, plot "< zcat $f | gawk -v
> NAME=60001 '/AS/ {TIME=$4} $1==NAME {print TIME,$2,$3,$4,$5,$6,$7,$8,$11;
> exit}'" using 3:4 with points pt 6 lt -1
by
plot "< zcat $f" using 3:4 with dots lt 8, \
"< zcat $f | gawk -f myscript.awk NAME=60001" using 3:4 \
with points pt 6 lt -1
[A side note: there was a superfluous "plot" keyword lurking in your
posted version]
|