sed Magic

sed is a general-purpose stream editor. It can edit data in a pipe - that is, as it leaves one process and before it gets to another. It's also useful for just extracting data from files.