okay, time to ask the wizards.

Robert Bonomi bonomi at mail.r-bonomi.com
Thu Oct 28 13:22:49 UTC 2010


> From: Gary Kline <kline at thought.org>
> To: FreeBSD Mailing List <freebsd-questions at 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
--
   



More information about the freebsd-questions mailing list