okay, time to ask the wizards.

Chip Camden sterling at camdensoftware.com
Thu Oct 28 17:38:07 UTC 2010


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 <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.  :-)
> 
> 
> awk '{print $0"\n"}'
> 
> ^_^
> 

Birdie -- but,

sed G

is an eagle.

-- 
Sterling (Chip) Camden    | sterling at camdensoftware.com | 2048D/3A978E4F
http://camdensoftware.com | http://chipstips.com        | http://chipsquips.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20101028/f30d17c4/attachment.pgp


More information about the freebsd-questions mailing list