Date: Thu, 28 Oct 2010 09:31:39 -0700 From: Gary Kline <kline@thought.org> To: Robert Bonomi <bonomi@mail.r-bonomi.com> Cc: freebsd-questions@freebsd.org, kline@thought.org.r-bonomi.com Subject: Re: okay, time to ask the wizards. Message-ID: <20101028163139.GB11082@thought.org> In-Reply-To: <201010281318.o9SDI6VK017350@mail.r-bonomi.com> References: <201010281318.o9SDI6VK017350@mail.r-bonomi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 28, 2010 at 08:18:06AM -0500, Robert Bonomi wrote:
>
> > From: Gary Kline <kline@thought.org>
> > To: FreeBSD Mailing List <freebsd-questions@freebsd.org>
> > 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/&&/' <infile >outfile
> -or-
> awk '{print; print "";}' infile
> --
>
There's another way, using awk. :-)
gary
>
> _______________________________________________
> 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"
--
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101028163139.GB11082>
