I did read it, otherwise I wouldn't of been able to do any of that lol, and I misread -r damn, i thought it meant it would clear the Nth line, silly me. Thanks for your help.