I am running ubuntu and in gnuplot, when I execute plot "<(awk '...' data.txt)" part of this command is drawn into the middle of the graph of data. The graph itself is correct, the problem is the text of the command that remains in the output. I could't find anything about other people experiencing residues like this. Does anyone have any idea where to problem might be or where to look for solution?
Code:
plot '<(awk "BEGIN{x=0} /^#previous/ {x++} /^#[^p]/ {x=0} /^[^m#]/ {if(x) print}" ./data.txt)' using 2:3
Source data:
#current
month followed retweeted mentioned replied
Jan 395 29 35 28
Feb 380 28 32 31
#previous
month followed retweeted mentioned replied
Jan 381 30 38 32
Feb 378 25 42 30
Mar 374 28 46 40
Apr 372 29 40 35
May 371 28 35 25
Jun 371 31 37 30
Jul 370 30 34 28
Aug 372 30 35 30
Sep 376 27 35 33
Oct 379 29 42 37
Nov 387 31 40 35
Dec 385 29 33 25
Output:
