From owner-freebsd-questions@FreeBSD.ORG Wed Nov 15 15:17:52 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 0CD5C16A407 for ; Wed, 15 Nov 2006 15:17:52 +0000 (UTC) (envelope-from antennex@hotmail.com) Received: from bay0-omc3-s6.bay0.hotmail.com (bay0-omc3-s6.bay0.hotmail.com [65.54.246.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 98FE043D69 for ; Wed, 15 Nov 2006 15:17:27 +0000 (GMT) (envelope-from antennex@hotmail.com) Received: from hotmail.com ([65.55.130.108]) by bay0-omc3-s6.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 15 Nov 2006 07:17:27 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 15 Nov 2006 07:17:27 -0800 Message-ID: Received: from 65.55.130.123 by by125fd.bay125.hotmail.msn.com with HTTP; Wed, 15 Nov 2006 15:17:25 GMT X-Originating-IP: [65.68.247.73] X-Originating-Email: [antennex@hotmail.com] X-Sender: antennex@hotmail.com From: "Jack Stone" To: freebsd-questions@freebsd.org Date: Wed, 15 Nov 2006 09:17:25 -0600 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 15 Nov 2006 15:17:27.0128 (UTC) FILETIME=[28EAE580:01C708C9] Subject: 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:17:52 -0000 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