From owner-freebsd-questions@FreeBSD.ORG Thu Oct 28 16:32:03 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA6AE10657C7 for ; Thu, 28 Oct 2010 16:32:03 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (plato.thought.org [209.180.213.209]) by mx1.freebsd.org (Postfix) with ESMTP id 912718FC16 for ; Thu, 28 Oct 2010 16:32:03 +0000 (UTC) Received: by thought.org (Postfix, from userid 1001) id 52EA0E819F9; Thu, 28 Oct 2010 09:31:39 -0700 (PDT) Date: Thu, 28 Oct 2010 09:31:39 -0700 From: Gary Kline To: Robert Bonomi Message-ID: <20101028163139.GB11082@thought.org> References: <201010281318.o9SDI6VK017350@mail.r-bonomi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201010281318.o9SDI6VK017350@mail.r-bonomi.com> X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 24 years of service to the Unix community. User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-questions@freebsd.org, kline@thought.org.r-bonomi.com Subject: Re: okay, time to ask the wizards. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Oct 2010 16:32:03 -0000 On Thu, Oct 28, 2010 at 08:18:06AM -0500, Robert Bonomi wrote: > > > From: Gary Kline > > To: FreeBSD Mailing List > > Cc: > > Subject: okay, time to ask the wizards. > > > > I've got a very large file with paragraphs separated only by "\n". > > How do I put a blank line _after_ each newline? > > have you tried something as simple as > > sed -e 's/\n/&&/' outfile > -or- > awk '{print; print "";}' infile > -- > There's another way, using awk. :-) gary > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix The 7.90a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org