title: Loop structure inside gnuplot?
body: <p>Is there any way to iteratively retrieve data from multiple files and plot them on the same graph in gnuplot. Suppose I have files like data1.txt, data2.txt......data1000.txt; each having the same number of columns. Now I could write something like-</p>
  
  <pre><code>plot "data1.txt" using 1:2 title "Flow 1", \
       "data2.txt" using 1:2 title "Flow 2", \
        .
        .
        .
       "data1000.txt"  using 1:2 title "Flow 6"
  </code></pre>
  
  <p>But this would be really inconvenient. I was wondering whether there is a way to loop through the <strong>plot</strong> part in gnuplot.</p>