Thanks loki! this works great laugh although one problem. I put it into my script and each time i run it, it displays this error message once.
/echo: insufficient parameters (line 1154, GXAC2.txt)

Dunno who shocked It still displays everything perfectly. Anyway i can hide this error?