On Thu, Oct 28, 2010 at 08:18:06AM -0500, Robert Bonomi wrote:
>
> > From: Gary Kline <[email protected]>
> > To: FreeBSD Mailing List <[email protected]>
> > 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
>
> _______________________________________________
> [email protected] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[email protected]"
--
Gary Kline [email protected] http://www.thought.org Public Service Unix
The 7.90a release of Jottings: http://jottings.thought.org/index.php
http://journey.thought.org
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"