What I want:
echo {0..2} | gnuplot --persist -e "f='{OUTPUT FROM ECHO}'" myplot.plg
0 1 2
FILE myplot.plg:
print f
#plot for [fi in f] fi.".dat" using 1 w l title sprintf(fi)
USE:
echo "python sim.py > "{0..2}".dat &" | bash -
echo "node sim.js > "{0..2}".dat &" | bash -
echo {0..2} | gnuplot --persist -e {Stack Overflow Magic?} myplot.plg
The goal would be to run many instances of this sim simultaneously (different initial conditions) using echo to create the command, & to fork the process, and bash to run it. Once the simulation is complete, I want to display all of the plots in one figure. Ex: plot {0..100}.dat nolegend