Date: Thu, 28 Oct 2010 10:38:01 -0700 From: Chip Camden <sterling@camdensoftware.com> To: freebsd-questions@freebsd.org Subject: Re: okay, time to ask the wizards. Message-ID: <20101028173801.GD73337@libertas.local.camdensoftware.com> In-Reply-To: <1288285840.20243.10.camel@localhost.localdomain> References: <201010281318.o9SDI6VK017350@mail.r-bonomi.com> <20101028163139.GB11082@thought.org> <1288285840.20243.10.camel@localhost.localdomain>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <kline@thought.org> > > > > To: FreeBSD Mailing List <freebsd-questions@freebsd.org> > > > > 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/&&/' <infile >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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101028173801.GD73337>