|
From: Jon <dev...@gm...> - 2020-06-23 21:26:52
|
Hi,
I am trying to execute a script ssss.gn within gnuplot 5.2.2 in
linuxmint 18.2 including the following lines
pwdd="`pwd`"
do for [ dir in "4.1 4.15 4.2 4.25 4.3 "] {
print dir
cd dir."/right/here/waiting/"
ef=`head -n 1 DOSCAR | awk '{print $5}'`
print ef
cd pwdd
}
but it complains
gnuplot> load "ssss.gn"
head: cannot open 'DOSCAR' for reading: No such file or directory
4.1
line 5: constant expression required
but the file does exist under the directory, why would it complain
file not existing
Another confusing observation is the error concerning nonexistence of
DOSCAR comes before the print statement in the script. Why is that?
Thanks,
Sincerely,
Jon
|