From owner-freebsd-questions@FreeBSD.ORG Wed Nov 15 15:24:44 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 A0B5D16A4C2 for ; Wed, 15 Nov 2006 15:24:44 +0000 (UTC) (envelope-from njm@njm.f2s.com) Received: from outmail.freedom2surf.net (outmail1.freedom2surf.net [194.106.33.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2231743D5C for ; Wed, 15 Nov 2006 15:24:37 +0000 (GMT) (envelope-from njm@njm.f2s.com) Received: from ariel.njm.f2s.com (i-195-137-21-170.freedom2surf.net [195.137.21.170]) by outmail.freedom2surf.net (Postfix) with ESMTP id 6E11955024 for ; Wed, 15 Nov 2006 15:24:36 +0000 (GMT) Received: from ariel.njm.f2s.com (localhost.njm.f2s.com [127.0.0.1]) by ariel.njm.f2s.com (8.13.8/8.13.6) with ESMTP id kAFFOZpU078614 for ; Wed, 15 Nov 2006 15:24:35 GMT (envelope-from njm@ariel.njm.f2s.com) Received: (from njm@localhost) by ariel.njm.f2s.com (8.13.8/8.13.8/Submit) id kAFFOZ7l078613 for freebsd-questions@freebsd.org; Wed, 15 Nov 2006 15:24:35 GMT (envelope-from njm) Date: Wed, 15 Nov 2006 15:24:34 +0000 From: "N.J. Mann" To: freebsd-questions@freebsd.org Message-ID: <20061115152434.GA78325@ariel.njm.f2s.com> Mail-Followup-To: freebsd-questions@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 6.2-PRERELEASE User-Agent: Mutt/1.5.13 (2006-08-11) 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:24:44 -0000 On Wed 15 Nov 09:17, 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: [...] grep -v '^$' Cheers, Nick. -- "With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead." -- RFC 1925