From owner-freebsd-questions@FreeBSD.ORG Tue Nov 24 03:35:39 2009 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 07900106566B for ; Tue, 24 Nov 2009 03:35:39 +0000 (UTC) (envelope-from ccowart@rescomp.berkeley.edu) Received: from hal.rescomp.berkeley.edu (hal.Rescomp.Berkeley.EDU [169.229.70.150]) by mx1.freebsd.org (Postfix) with ESMTP id E5A4C8FC15 for ; Tue, 24 Nov 2009 03:35:38 +0000 (UTC) Received: by hal.rescomp.berkeley.edu (Postfix, from userid 1225) id 53DC2597D10; Mon, 23 Nov 2009 19:35:38 -0800 (PST) Date: Mon, 23 Nov 2009 19:35:38 -0800 From: Chris Cowart To: Gary Kline Message-ID: <20091124033538.GK11723@hal.rescomp.berkeley.edu> Mail-Followup-To: Gary Kline , FreeBSD Mailing List References: <20091124002920.GA51110@thought.org> <20091124003652.GH11723@hal.rescomp.berkeley.edu> <20091124013934.GA51279@thought.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="hdhkc9EpVJoq6PQ6" Content-Disposition: inline In-Reply-To: <20091124013934.GA51279@thought.org> Organization: RSSP-IT, UC Berkeley User-Agent: Mutt/1.5.20 (2009-06-14) Cc: FreeBSD Mailing List Subject: Re: need a newline between paragraphs.... 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: Tue, 24 Nov 2009 03:35:39 -0000 --hdhkc9EpVJoq6PQ6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Gary Kline wrote: > PS: is there any one-liner to add back one newline between > paragraphs? That depends a lot on how you define paragraph. If they all start with tabs, something like: sed '/^<^VTAB>/ i\ \<^VTAB> ' myfile Where you use ^VTAB to insert some literals tabs on the commandline. I couldn't seem to convince sed to insert an empty line, but I didn't play around with it all that long. If you need more sophisticated paragraph detection (like based on the previous line not being some number of characters or some kind of period to capital letter thing or something), you're going to spend a lot more time mucking through it. --=20 Chris Cowart Network Technical Lead Network & Infrastructure Services, RSSP-IT UC Berkeley --hdhkc9EpVJoq6PQ6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iQIcBAEBAwAGBQJLC1SKAAoJEC8b9sM8ejXtlZcP/2Qw/5TpST+ZdDSU1Y9LcDza NCzpAvTtboNUVq1bmRbEFQi0G+TFLh+a39WIRMk20aiYFWpeMmEUkAW6OCzGnna5 fPheb/x8VgOFIjYn4Z0aRJPMAhc7ze2E+MvU8oLXzl6U3jlq5qoZQrwHga5L1v6d 17+ARBT0DO0dC4CeUfQTpMO+bnC75vRoODDIh97EqMPSqZ6Fxjf7HngNPzZGrDOo 4uHe/3qrN8j8NGtm0vvu6r3glqE1rqobEcG6KiVKQy6cUZVWgKhydqTAOUV4UD9U iG0iLm01RBTPJ52/ycHO2lBcGbFO3Dr4O5FvjPCxviJ8QQ588TduY4VJFwyqY6cj AEPGmYI7hTc3eo8qcxrwrvw7wSU/NuRVEI6iwXtF5mz/FGkKQ+xt/7En8HWHzk41 kMVe3+uEbJ/Naj8YbKbz5j+XzMhuca/umdUwmc/m0AXDv5zx6CA/2WkbzuIou4g3 JWunK8vCWO3iaZ6UUN8RKc67lPDI3YYl6lZXsvQNsAfZi7+7LUydLvH9ioDyVNWK AO9DhkKtR6QAryTWOB/2t6X9SBpNcw32mEtQK+jrk+xgdoXJ0Berq5MRz3+H+a8+ +bgCuE9m+R80PtD2n1iUTDEaki3DNBExGONFljNo/ntYdiXUdXOHjRNltBvAeQcy 316f6MWBGIWfOunqTcxZ =eE/m -----END PGP SIGNATURE----- --hdhkc9EpVJoq6PQ6--