From owner-freebsd-questions@FreeBSD.ORG Thu Oct 28 17:10:46 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D87D7106567A for ; Thu, 28 Oct 2010 17:10:46 +0000 (UTC) (envelope-from dteske@vicor.com) Received: from postoffice.vicor.com (postoffice.vicor.com [69.26.56.53]) by mx1.freebsd.org (Postfix) with ESMTP id 7E8A98FC1D for ; Thu, 28 Oct 2010 17:10:46 +0000 (UTC) Received: from [208.206.78.30] (port=50868 helo=dt.vicor.com) by postoffice.vicor.com with esmtpsa (SSLv3:RC4-MD5:128) (Exim 4.71) (envelope-from ) id 1PBVzt-0008LP-3Q; Thu, 28 Oct 2010 10:10:45 -0700 From: Devin Teske To: Gary Kline In-Reply-To: <20101028163139.GB11082@thought.org> References: <201010281318.o9SDI6VK017350@mail.r-bonomi.com> <20101028163139.GB11082@thought.org> Content-Type: text/plain Organization: Vicor, Inc Date: Thu, 28 Oct 2010 10:10:40 -0700 Message-Id: <1288285840.20243.10.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-41.el4) Content-Transfer-Encoding: 7bit X-Scan-Signature: e1fb08922197b3ded84b40f0ff833436 X-Scan-Host: postoffice.vicor.com Cc: freebsd-questions@freebsd.org, kline@thought.org.r-bonomi.com, Robert Bonomi Subject: Re: okay, time to ask the wizards. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Oct 2010 17:10:46 -0000 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 > > > To: FreeBSD Mailing List > > > 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/&&/' 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 <-