okay, time to ask the wizards.

Nerius Landys nlandys at gmail.com
Thu Oct 28 01:14:07 UTC 2010


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 <kline at 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  kline at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at freebsd.org"
>


More information about the freebsd-questions mailing list