From owner-freebsd-questions@FreeBSD.ORG Thu Oct 28 01:14:07 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 06BF9106564A for ; Thu, 28 Oct 2010 01:14:07 +0000 (UTC) (envelope-from nlandys@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id B15D38FC17 for ; Thu, 28 Oct 2010 01:14:06 +0000 (UTC) Received: by qwe4 with SMTP id 4so1331410qwe.13 for ; Wed, 27 Oct 2010 18:14:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=nTI3Mq4js6HOLkz7da0gN/g1V4ajX+uAAeePbQgBcfA=; b=x5zYUsmyB5YW/YZMEQfqQeDm0Bqby204C+O5l014C4QhX9Lj+c4EiGCdCucIGxDG3v S064D3sPpSsZaqmMHUoyZBjXFFIKa1rv7juCwm1rc0PLegM6+naBJ6Bq8F9vvlaFsszJ 2AP48JY0aqJG0y63Uw6cqE9UFjij++OttQMtY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=ufZFWX/8CGNWtoWFzXZY8HfWvHZ2jyXi+MsFjk9EU3M5Hq+XWD8TEBYFY8bUgJuBu8 5gBPZP4hIbxlGAtEmRLuxn+KChciVizW3J9Ao2wHCKAF7lDxjOR9prGQOvO2CI9wmEgs CQVXrv1+35LoRWFF3dwzsY+PUqZp9/GEUFk00= MIME-Version: 1.0 Received: by 10.229.191.85 with SMTP id dl21mr9705888qcb.260.1288228444323; Wed, 27 Oct 2010 18:14:04 -0700 (PDT) Received: by 10.229.105.93 with HTTP; Wed, 27 Oct 2010 18:14:04 -0700 (PDT) In-Reply-To: <20101028010447.GA9734@thought.org> References: <20101028010447.GA9734@thought.org> Date: Wed, 27 Oct 2010 18:14:04 -0700 Message-ID: From: Nerius Landys To: Gary Kline Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Mailing List 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 01:14:07 -0000 You mean replace each newline character with two newline characters? perl -p -i -e 's/\n/\n\n/g' yourfile.txt Something like that? On Wed, Oct 27, 2010 at 6:04 PM, Gary Kline wrote: > I've got a very large file with paragraphs separated only by "\n". > How do I put a blank line _after_ each newline? > > > > -- > 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 > > _______________________________________________ > 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" >