From owner-freebsd-questions Wed Mar 17 19:25:29 1999 Delivered-To: freebsd-questions@freebsd.org Received: from inet.chip-web.com (c1003518-a.plstn1.sfba.home.com [24.1.82.47]) by hub.freebsd.org (Postfix) with SMTP id CF34E15222 for ; Wed, 17 Mar 1999 19:25:24 -0800 (PST) (envelope-from ludwigp@bigfoot.com) Received: (qmail 29485 invoked from network); 18 Mar 1999 01:38:24 -0000 Received: from speedy.chip-web.com (HELO speedy) (172.16.1.1) by inet.chip-web.com with SMTP; 18 Mar 1999 01:38:24 -0000 Message-Id: <4.1.19990317173532.00a4cee0@mail-r> X-Sender: ludwigp2@mail-r X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Wed, 17 Mar 1999 17:38:21 -0800 To: cjclark@home.com, freebsd-questions@FreeBSD.org (FreeBSD Questions) From: Ludwig Pummer Subject: Re: sed and newlines In-Reply-To: <199903172339.SAA06674@cc942873-a.ewndsr1.nj.home.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 03:39 PM 3/17/99 , Crist J. Clark wrote: ... >If I am reading this correctly, > >% sed 's/\n/ /' file > >Should take the file and subsitute three spaces in place of every >newline. However, it does not. It does not seem to understand '\n.' ... >Am I missing something obvious? Or is sed broken? Have you tried escaping your \ ? As in sed 's/\\n/ /' file When I've had problems with escaping things I (1) used echo in place of the command to see what the shell did to the command line I was giving (2) changed my shell's globbing options (read the manpage for your shell on that). --Ludwig Pummer ( ludwigp@bigfoot.com ) ICQ UIN: 692441 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message