Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jun 2002 16:16:18 +1000
From:      Jacob Rhoden <f3z@iprimus.com.au>
To:        freebsd-questions@freebsd.org
Subject:   OT: using sed to insert \n at command line
Message-ID:  <5.1.1.6.0.20020618161418.020a7780@wheresmymailserver.com>

next in thread | raw e-mail | index | archive | help
Hi,

Ive done some searching online and I cant work out how to do this, and I 
was wondering if any of you guys do? This is what I am doing, and when I 
try to insert a \n it doesnt work either way:

   input | sed 's/a string/\n/g' | output
   input | sed 's/a string/\\n/g' | output

what is the correct way from the command prompt? Thanks for any help . .

Regards,
Jacob


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.1.6.0.20020618161418.020a7780>