|
From: <HBB...@t-...> - 2007-07-15 22:15:30
|
Eduard wrote: > #!/bin/csh > > set IN = ./output.dat > set OUT = ./output.eps > cat <<EOF | gnuplot > $OUT That's useless use of 'cat'. gnuplot >$OUT <<EOF would work just as well, and without running yet another program. [...] > plot "$IN" u 1:(2+3) title "p" with lines > The bolded line is the one which make me difficulties. I have tried to > replace the syntax from -> 1:(2+3) <- > with 1:($2+$3), 1:$(2+3), etc but without any success :(. The problem is not with gnuplot, but with csh. You have to figure out what kind of quoting you need to get a literal '$' character into the text generated by the HERE script in csh. Or, if you can't get that to work, see 'help column'. |