Date: Thu, 28 Oct 2010 08:18:06 -0500 (CDT) From: Robert Bonomi <bonomi@mail.r-bonomi.com> To: freebsd-questions@freebsd.org, kline@thought.org.r-bonomi.com Subject: Re: okay, time to ask the wizards. Message-ID: <201010281318.o9SDI6VK017350@mail.r-bonomi.com>
next in thread | raw e-mail | index | archive | help
> 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
--
   
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010281318.o9SDI6VK017350>
