Path: utzoo!censor!geac!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!sci.kun.nl!cs.kun.nl!hansm From: hansm@cs.kun.nl (Hans Mulder) Newsgroups: comp.unix.shell Subject: Re: sed newlines Message-ID: <2682@wn1.sci.kun.nl> Date: 23 Jan 91 17:53:53 GMT References: <2056@kluge.fiu.edu> Sender: root@sci.kun.nl Organization: University of Nijmegen, The Netherlands Lines: 19 In article <2056@kluge.fiu.edu> acmfiu@serss0.fiu.edu (ACMFIU) asks: >in a sed replacement expression, how can i insert a newline character? Bourne shell and derivatives: sed 's/foo/bar\ bletch/' C shell and derivatives: sed 's/foo/bar\\ bletch/' This is on a Sun3 running SunOS 4.1.1 if it matters. Have a nice day, Hans Mulder hansm@cs.kun.nl