From command line, I can plot part of the data of a text file as:
echo "plot \"< cat myfile | awk '{print \$2}'\" | gnuplot -persist
I would like to make a simple bash script (mygnuplot) that allows me to do:
cat myfile | awk '{print $2}' | mygnuplot
I have read all the thread but I still haven't figured it out. Can someone advise me. Thanks, Jacopo