thanks for the reply.... ur script made it better... thanks thanks..
anyway, my real problem is that i cannot print in multiple lines... my output is always placed in a single line. I tried sed, grep and perl.... none works... or maybe i dont know the correct syntax...
im trying to use "\n" but it only prints as output.