I am learning pass BASH list to Gnuplot without generate an intermediate file. The answer I found was very useful (by Christoph at Set parameters of Gnuplot from array in bash script). And the code is below.
I am confused about two symbols. One is " in values="${params[]}*. The other is . in eval('set '.val). I did not find the syntax in the manual. Could you tell me what they are for?
### Code
#!/bin/bash
params[0]='grid'
params[1]='xrange[0:10]'
gnuplot -persist << EOF
values="${params[*]}
do for [val in values] {
eval('set '.val)
}
plot x
EOF
####
., in the gnuplot manual in the ChapterExpressions -> Operators.