From owner-freebsd-questions@FreeBSD.ORG Wed Nov 15 15:22:18 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6990516A407 for ; Wed, 15 Nov 2006 15:22:18 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (www.unsane.co.uk [85.233.185.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53F3C43D8F for ; Wed, 15 Nov 2006 15:22:00 +0000 (GMT) (envelope-from jhary@unsane.co.uk) Received: from [192.168.10.217] (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.13.7/8.13.3) with ESMTP id kAFFLwMd095824 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 15 Nov 2006 15:21:59 GMT (envelope-from jhary@unsane.co.uk) Message-ID: <455B3091.2050903@unsane.co.uk> Date: Wed, 15 Nov 2006 15:21:53 +0000 From: Vince User-Agent: Thunderbird 1.5.0.7 (X11/20061017) MIME-Version: 1.0 To: Jack Stone References: In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Another FBSD utility/script question 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: Wed, 15 Nov 2006 15:22:18 -0000 Hmm sed -e "/^$/d" FILENAME > newfilename will do the job if they are empty lines. Vince Jack Stone wrote: > Here I come with another easy one for most on the list -- except for me. > > I have 12,000 plus lines that have an empty line in between each real > line, like so: > > this is a line of info 1 > (empty) > this is a line of info 2 > > this is a line of info 3 > > etc, etc > > To eliminate each "empty" line in between the "info" lines would take a > long, long time. > Thus my question: what tool is available or syntax to remove the 6000 > empty lines so there's no space in between? > > This has got to be an easy one, except when one doesn't know the answer. > > Thanks, > > Jack of all trades, master of only some! > > _________________________________________________________________ > Stay in touch with old friends and meet new ones with Windows Live > Spaces > http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us > > > _______________________________________________ > 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"