|
From: atoms.h <tho...@gm...> - 2014-05-21 07:11:35
|
Thanks Ethan for your quick reply!
One problem is that I have to use the macro for
$ `echo $(awk '/Total/ {print $4}' @file)`
otherwise i cannot pass the variable to bash.
What also doesn't work (and I have no idea as to why that is) is to do
$ `echo $(awk '/Total/ {print $4}' @item(i))`
Then I get error because of the brackets....
Secondly, I realize that this probably wasn't the best example for what I
actually want to do.
Because 'total' gets overwritten for every file. My real goal would be
something like
$ total(i) = sprintf("%d",`echo $(awk '/Total/ {print $4}' @file)`)
So store the values in a fake-array....
Kind regards,
Thomas
--
View this message in context: http://gnuplot.10905.n7.nabble.com/string-variables-and-iteration-tp18434p18438.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|