From owner-freebsd-questions Mon Jun 17 23:16:19 2002 Delivered-To: freebsd-questions@freebsd.org Received: from ariel.ucs.unimelb.edu.au (ariel.ucs.unimelb.edu.au [128.250.20.3]) by hub.freebsd.org (Postfix) with ESMTP id 37E2B37B407 for ; Mon, 17 Jun 2002 23:16:14 -0700 (PDT) Received: from SARDIS.iprimus.com.au (ws18-60.its.unimelb.edu.au [128.250.18.60]) by ariel.ucs.unimelb.edu.au (8.12.3/8.12.3) with ESMTP id g5I6G9W4002471 for ; Tue, 18 Jun 2002 16:16:09 +1000 (EST) Message-Id: <5.1.1.6.0.20020618161418.020a7780@wheresmymailserver.com> X-Sender: f3z@mail.iprimus.com.au X-Mailer: QUALCOMM Windows Eudora Version 5.1.1 Date: Tue, 18 Jun 2002 16:16:18 +1000 To: freebsd-questions@freebsd.org From: Jacob Rhoden Subject: OT: using sed to insert \n at command line Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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