On Thu, Oct 28, 2010 at 08:18:06AM -0500, Robert Bonomi wrote: > > > From: Gary Kline <kl...@thought.org> > > To: FreeBSD Mailing List <freebsd-questions@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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" -- 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"