Quoth Devin Teske on Thursday, 28 October 2010: > On Thu, 2010-10-28 at 09:31 -0700, Gary Kline wrote: > > 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. :-) > > > awk '{print $0"\n"}' > > ^_^ >
Birdie -- but, sed G is an eagle. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipstips.com | http://chipsquips.com
pgp9qhMaK4X6u.pgp
Description: PGP signature