You mean replace each newline character with two newline characters?

perl -p -i -e 's/\n/\n\n/g' yourfile.txt

Something like that?

On Wed, Oct 27, 2010 at 6:04 PM, Gary Kline <kl...@thought.org> wrote:

> I've got a very large file with paragraphs separated only by "\n".
> How do I put a blank line _after_ each newline?
>
>
>
> --
>  Gary Kline  kl...@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
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscr...@freebsd.org"
>
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to