From owner-freebsd-questions@FreeBSD.ORG Thu Oct 28 13:22:49 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 2CA6A106564A for ; Thu, 28 Oct 2010 13:22:49 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (ns2.r-bonomi.com [204.87.227.129]) by mx1.freebsd.org (Postfix) with ESMTP id DDB4B8FC12 for ; Thu, 28 Oct 2010 13:22:48 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.3/rdb1) id o9SDI6VK017350; Thu, 28 Oct 2010 08:18:06 -0500 (CDT) Date: Thu, 28 Oct 2010 08:18:06 -0500 (CDT) From: Robert Bonomi Message-ID: <201010281318.o9SDI6VK017350@mail.r-bonomi.com> To: freebsd-questions@freebsd.org, kline@thought.org.r-bonomi.com Cc: 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 13:22:49 -0000 > 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 --