I need an awk script to do the following things, please help me.
Here is a scenario.
I have a text file which I usually be editing in NEDIT,
I have to select the text (basically pair of points- like a 2 column data points) then through customised shell menu I should plot this selected text.
basically the awk script should do writing the selected text in NEDIT in to temporary file, then instruct "gnuplot" to plot this text file which contains data poitns.

Use attached files to see how gnuplot works.
On a shell window, execute the following command:
gnuplot plot_spline.sh

this should post a plot on your screen.

What in the name of thundering blisters you think guys here are for ?
Do you work ?!!
Post your code if you have a problem.. We're here to "help you do it" not "do it"..