You can use split to accomplish this
In reply to Re: how to substitute next line with nothing by lakshmananindia in thread how to substitute next line with nothing by Anonymous Monk