I m trying to get the first element of a file within gnuplot:
data = "file.dat"
x = `cat data | head -n 2 | tail -n 1 | awk '{print $1}'`
but this keeps giving me the following error:
no such file or directory
I should write something like
x = cat $data | head -n 2 | tail -n 1 | awk '{print $1}'
(with dollar)
Obviouly, this is also not correct.
Any ideas?