Quote:
Hmmm, the \n doesn't give me a newline, it just outputs "n". Perhaps it is because I have a very old copy of sed (this box is still on RedHat 7.1).


Indeed sounds like an old version of sed. Marks solution deals with that issue anyway.