I want to plot several files just executing a bash script which calls Gnuplot. My idea of a possible bash script is:
#!/bin/bash gnuplot plot 'my_first_file.dat' u 1:2 replot 'my_second_file.dat' u 1:2
let us call this bash script gnuplot_script.sh
.
When I execute this script via $./gnuplot_script.sh
I only get gnuplot open in my terminal without the plots related to the script.
What should I modify in the script in order to have my data plotted? This is my first time in the world of bash scripting.