Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Oct 2010 10:10:40 -0700
From:      Devin Teske <dteske@vicor.com>
To:        Gary Kline <kline@thought.org>
Cc:        freebsd-questions@freebsd.org, kline@thought.org.r-bonomi.com, Robert Bonomi <bonomi@mail.r-bonomi.com>
Subject:   Re: okay, time to ask the wizards.
Message-ID:  <1288285840.20243.10.camel@localhost.localdomain>
In-Reply-To: <20101028163139.GB11082@thought.org>
References:  <201010281318.o9SDI6VK017350@mail.r-bonomi.com> <20101028163139.GB11082@thought.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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"}'

^_^



> 	gary
> 
> 
> > 
> > _______________________________________________
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"

-- 
Cheers,
Devin Teske

-> CONTACT INFORMATION <-
Business Solutions Consultant II
FIS - fisglobal.com
510-735-5650 Mobile
510-621-2038 Office
510-621-2020 Office Fax
909-477-4578 Home/Fax
devin.teske@fisglobal.com

-> LEGAL DISCLAIMER <-
This message  contains confidential  and proprietary  information
of the sender,  and is intended only for the person(s) to whom it
is addressed. Any use, distribution, copying or disclosure by any
other person  is strictly prohibited.  If you have  received this
message in error,  please notify  the e-mail sender  immediately,
and delete the original message without making a copy.

-> FUN STUFF <-
-----BEGIN GEEK CODE BLOCK-----
Version 3.1
GAT/CS d(+) s: a- C++(++++) UB++++$ P++(++++) L++(++++) !E--- W++ N? o? K- w O
M+ V- PS+ PE Y+ PGP- t(+) 5? X+(++) R>++ tv(+) b+(++) DI+(++) D(+) G+>++ e>+ h
r>++ y+ 
------END GEEK CODE BLOCK------
http://www.geekcode.com/

-> END TRANSMISSION <-




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1288285840.20243.10.camel>