From owner-freebsd-questions@FreeBSD.ORG Thu Oct 28 17:38: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 1F3871065673 for ; Thu, 28 Oct 2010 17:38:07 +0000 (UTC) (envelope-from sterling@camdensoftware.com) Received: from wh2.interactivevillages.com (wh2.interactivevillages.com [75.125.250.34]) by mx1.freebsd.org (Postfix) with ESMTP id D6D928FC0A for ; Thu, 28 Oct 2010 17:38:06 +0000 (UTC) Received: from 174-21-106-233.tukw.qwest.net ([174.21.106.233] helo=_HOSTNAME_) by wh2.interactivevillages.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1PBWI5-00029c-U1 for freebsd-questions@freebsd.org; Thu, 28 Oct 2010 10:29:31 -0700 Received: by _HOSTNAME_ (sSMTP sendmail emulation); Thu, 28 Oct 2010 10:38:01 -0700 Date: Thu, 28 Oct 2010 10:38:01 -0700 From: Chip Camden To: freebsd-questions@freebsd.org Message-ID: <20101028173801.GD73337@libertas.local.camdensoftware.com> Mail-Followup-To: freebsd-questions@freebsd.org References: <201010281318.o9SDI6VK017350@mail.r-bonomi.com> <20101028163139.GB11082@thought.org> <1288285840.20243.10.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YToU2i3Vx8H2dn7O" Content-Disposition: inline In-Reply-To: <1288285840.20243.10.camel@localhost.localdomain> User-Agent: Mutt/1.4.2.3i Company: Camden Software Consulting URL: http://camdensoftware.com X-PGP-Key: http://pgp.mit.edu:11371/pks/lookup?search=0xD6DBAF91 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - wh2.interactivevillages.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - camdensoftware.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 17:38:07 -0000 --YToU2i3Vx8H2dn7O Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoth Devin Teske on Thursday, 28 October 2010: > On Thu, 2010-10-28 at 09:31 -0700, Gary Kline wrote: > > On Thu, Oct 28, 2010 at 08:18:06AM -0500, Robert Bonomi wrote: > > >=20 > > > > From: Gary Kline > > > > To: FreeBSD Mailing List > > > > Cc:=20 > > > > 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? > > >=20 > > > have you tried something as simple as > > >=20 > > > sed -e 's/\n/&&/' outfile > > > -or- > > > awk '{print; print "";}' infile > > > -- > > > =20 > >=20 > >=20 > > There's another way, using awk. :-) >=20 >=20 > awk '{print $0"\n"}' >=20 > ^_^ >=20 Birdie -- but, sed G is an eagle. --=20 Sterling (Chip) Camden | sterling@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipstips.com | http://chipsquips= .com --YToU2i3Vx8H2dn7O Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQEcBAEBAgAGBQJMybT5AAoJEIpckszW26+R9cEIAJtQ7imk4lQw7bU6IiXWJHNB zPgwFr+qRk2ruvK+bUL4mvm8cXQ30e1hssHcvNavStfu15XVKV/q8CZmKhkWzmTC kpTYGHfSa2zRjlajgCDbmMpJHWRL7owzDQp3w4qAeHNA4PWOWs11Nktj6CKMRq1n b/R2iaQcw1j7RLoiwtTMI8SyVH3sVnwUBwtsraDPul3XBxl4kVYAbTAcXEwLScWJ NK96GDuHM0On9GEXYZnBqVrDFMPGaLjhGHvRnA9eVyLWciKVnRYIksHyiVlsSPmF PJZoR5aAx+/mq8CmXX/XUSUiwqNUx6e+ZnutT0VXAtKFgNgPQ4XMcO4weR0tazM= =Nk4E -----END PGP SIGNATURE----- --YToU2i3Vx8H2dn7O--