13

Pass shell variable to gnuplot

view full story
linux-howto

http://www.unix.com – Hi I am plotting a series of CDFs using gnuplot using Code: plot "data" u 1:(1./x.) smooth cumulative I am doing this over many files and I need to tune the x value to the number of lines that meets a particular condition. Is it possible to get the line count from shell using Code: cat file | grep CONDITION | wc -l and pass it on to gnuplot by any means? Thanks a lot. (HowTos)