From: BBands <bb...@gm...> - 2013-09-03 17:30:45
|
Another way is to use the string operator: stringcolumn(3) or the shorthand strcol(3). I should have seen that to start with. John On Tue, Sep 3, 2013 at 10:16 AM, Leo Butler <l_b...@us...> wrote: > It should be ($3 eq 'M' ? $2 : 1/0) except that $3 is parsed as a > number, not a string, so even then you don't get what you want. > > So I expect that it compares the third column to 'M' and on a match return the second column. Isn't that? Now I receive > > None-numeric string found where a numeric expression was expected. > > I think > > plot "< awk '/M$/{print $1\" \"$2}' data.txt" u 1:2 > > does what you want. |