From: "Jens Knoell" <jens@surefoot.com>
To: Linux Admin <linux-admin@vger.kernel.org>
Subject: sed problem
Date: Thu, 4 Mar 2004 10:08:06 -0700 [thread overview]
Message-ID: <005001c4020b$43468f50$6f00000a@jenswin2k> (raw)
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
next reply other threads:[~2004-03-04 17:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-04 17:08 Jens Knoell [this message]
2004-03-04 17:17 ` sed problem Glynn Clements
2004-03-04 17:25 ` Matt Hemingway
-- strict thread matches above, loose matches on Subject: below --
2004-03-05 7:42 csoler
2004-03-05 8:55 ` urgrue
2004-03-09 8:46 ` Stephen Samuel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='005001c4020b$43468f50$6f00000a@jenswin2k' \
--to=jens@surefoot.com \
--cc=linux-admin@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).