Is it possible to name my gnuplot out file with the date and time it was created? I currently create files with set names as follows:
set term post eps color
set output '/path/dateandtime.eps'
plot
set term x11
You can use the builtin function time
to get the current timestamp and strftime
to format it:
set output strftime('/path/%F_%H-%M-%S.eps', time(0))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With