I'm probably wrong, but isn't ^M the DOS newline character thingy, which you see when opening Windows/DOS files in *nix? Wouldn't \n be right for *nix? -Matt On Thu, 4 Mar 2004 10:08:06 -0700 "Jens Knoell" <jens@xxxxxxxxxxxx> wrote: > Oke... sed-hell again. > > Case: I have a file that has lines separated by pipe chars. I need to split > it back into a line-by-line file. So I tried this (the ^M has been entered > by pushing Ctrl+V, Enter): > echo "This|should|be|on|separate|lines" | sed -e "s/|/^M/g" > > The result: > linesate > > I'm sure I'm missing something, but hours of googling didn't get me > anywhere. Any ideas? > > Thanks > Jens > > - > : send the line "unsubscribe linux-admin" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > - : send the line "unsubscribe linux-admin" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html