Leendert Meyer wrote:
On Wednesday 16 June 2004 01:58, Web Developer wrote:
Using sed as follows is expected to produce a newline where the first "x" is. However, under a Win machine it doesn't do this, can anyone see why - other than trying to run a *NIX utility under Windows? I'm not at my SUSE box, so can't play with it there.
sed s/x/\\n/
On Linus, the newline sequence is: 0xA or \n. On Windoes, the newline sequence is: 0xD 0xA, or \r\n. On Macintosh, the newline sequence is: 0xD, or \r.
You can use dos2unix or unix2dos to convert between these two. I'm not sure, but perhaps there's also mac2unix and unix2mac.
Cheers,
Leen
That still didn't produce the desired results for some reason. Never mind, though. My friend found a work-around that does what he needs. It did work using Knoppix, so it shouldn't be an issue for me and my SUSE box. Thanks for the quick response. Don -- Don Parris Webmaster Matheteuo Christian Fellowship Charlotte, NC http://matheteuo.org/ webdev@matheteuo.org