A powerful command, SED
SED is powerful. It can, besides many other things, substitute, append, remove characters or groups of characters or whole lines in a text file or the console output. You may find it difficult to use, but here is an excellent web page that will help you get going: