The above script is what I was looking for, ala I noticed a flaw. When I copy-paste one line is OK. When I copy paste tow lines appear three lines. I think there is a cape flaw in the above script.
Thank you