Hello all,
I heavily rely on scripts to display data.
My setup is that I have "01.txt" as data file and "01 plot.gp" as script file, etc.
My question: is there a command / way to refer to the name of the script inside the script (the equivalent of bash's $0)? My goal is to derive the name of the data file from the name of the script file in order to plot it.
Thanks.
Daniel
Have you tried looking at variable ARG0?
test.gp:
This script produces output like
My environment is gnuplot 5.4.8 installed via Macports on MacOS.
Last edit: Hiroki Motoyoshi 2023-10-11
Thanks a lot. That's helpful.
If anybody is interested: this is my way to extract the script name from ARG0:
works on Windows.
This support ticket can be closed. I don't know how to do this.