Many thanks for your replies
the problem with these scripts is that if x value is more than one word the script will not display the full line.so if for example x1 is "hello word" the above scripts will display "hello" only.
@Jotne: this works if there's always 4 data lines. My approach tries to allow for more data lines. I'm sure, though, that it deserves quite some polishing, still. @rdcwayx: thanks for adapting to the requestors NEW specification!