Subject: Re: sed \n problem
To: Moritz Mann <moritz@open.ch>
From: Antti Kantee <pooka@iki.fi>
List: netbsd-help
Date: 06/12/2001 17:14:32
On Tue Jun 12 2001 at 16:03:02 +0200, Moritz Mann wrote:
> I am trying to substitute some \n tags out of an String i.e.:
> 
> STRING=12345566 \n 3840423
> จจ
> now i try the sed or tr command and it does not work...
> 
> Do you have any ideas?

$ echo 'foo\\nbar' | sed 's/\\\\n/\
/'
foo
bar
$

ie. use a ``real'' newline.

-- 
Antti Kantee <pooka@iki.fi>          v          Of course he runs NetBSD
http://www.iki.fi/pooka/             i            http://www.NetBSD.org/