I need to run gnuplot scripts on different devices. The file structure is the same on the devices, once I get to a particular directory, but the paths to those directories are different. I think I need to have a variable in the path name that I can change according to which device I am on.
I thought the following would work, because I found something similar here, but it doesn't:
path_to_directory="/desktop/path/to/directory"
# path_to_directory="laptop/path/to/directory"
# the line above is commented out but it can be included
# if I want to switch from my desktop to my laptop
path_to_file="$path_to_directory/path/to/file"
plot path_to_file ...
A warning message says: Skipping unreadable file "$path_to_directory/path/to/file"
Do you know how I can include a variable in the path of a gnuplot script, so that I can switch easily between paths?
Thank you.