|
From: <pl...@pi...> - 2008-07-19 09:18:19
|
On Sat, 19 Jul 2008 03:41:02 +0200, Lutz Maibaum <lut...@gm...>
wrote:
> list="`ls test*.dat`"
> plot for [i=1:words(list)] word(list,i)
> which actually does not work, since calling ls through backticks
> generates
> a list with only a single item in it:
> gnuplot> !ls test*.dat
> test1.dat test2.dat
> gnuplot> list="`ls test*.dat`"
> gnuplot> print word(list,1)
> test1.dattest2.dat
> -- Lutz
even though Ethan has given a way to do this with system(), doesn't this
output indicate a bug in the way several lines are concatenated into one
useless string.
Not sure what the right output from this should be. First string, last
string, space separated concatenation or concat containing line break
ASCII 13 ??
One thing seems sure the current output "test1.dattest2.dat" is not a
valid solution and can never be useful.
However,
plot for [i=1:words(list)] word(list,i) title word(list,i)
looks highly useful.
/regards.
|