Hello PDreyer, your assumption was right.
Sorry, I was a little bit tired yesterday, didn't notice that.
Your script works perfect. Its impressive what awk and sed can do, of course knowing how to use them :-).
Thank you very much for your time.
You helped me a lot.
Regards,
Raul.