okay, time to ask the wizards.

Gary Kline kline at thought.org
Thu Oct 28 16:32:03 UTC 2010


On Thu, Oct 28, 2010 at 08:18:06AM -0500, Robert Bonomi wrote:
> 
> > 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
> --
>    


	There's another way, using awk.  :-)

	gary


> 
> _______________________________________________
> 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"

-- 
 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
                                        


More information about the freebsd-questions mailing list