0

I have a text file stats.txt with a numeric column "age" that is the 3rd column. How do I plot the column "age" from the command line?

I want to be able to do something like :

    cat stats.txt | awk '{print $3}' | plot

What's the cleanest way to do this ?

user196711
  • 311
  • 5
  • 17

1 Answers1

1

To plot from the command line just do

gnuplot -persist -e "plot 'stats.txt' using 0:3"
Christoph
  • 47,569
  • 8
  • 87
  • 187