In a bash script I have several arrays which I need to access in a gnuplot code:
#!/bin/bash
...
# fill array a[*] and b[*]
...
gnuplot <<EOF
do for [j=0:10] { # access ${a[j]} and ${b[j]} }
EOF
The problem is that ${a[j]} in the gnuplot code is not interpreted as element j of the array a.
How can I solve that?