From owner-freebsd-newbies@FreeBSD.ORG Thu Dec 30 13:19:00 2004 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AAAA616A4D1 for ; Thu, 30 Dec 2004 13:19:00 +0000 (GMT) Received: from sccimhc92.asp.att.net (sccimhc92.asp.att.net [63.240.76.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FB5C43D55 for ; Thu, 30 Dec 2004 13:19:00 +0000 (GMT) (envelope-from freebsd@nbritton.org) Received: from [192.168.1.10] (12-223-129-46.client.insightbb.com[12.223.129.46]) by sccimhc92.asp.att.net (sccimhc92) with ESMTP id <20041230131859i92002abkle>; Thu, 30 Dec 2004 13:18:59 +0000 Message-ID: <41D4003E.9090403@nbritton.org> Date: Thu, 30 Dec 2004 07:18:54 -0600 From: Nikolas Britton User-Agent: Mozilla Thunderbird 1.0 (X11/20041219) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-newbies@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Removing Blank Lines X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Dec 2004 13:19:00 -0000 Removing Blank or Empty Lines from a text file. Just posting this so I don't forget it, the last link and perl script is the one that worked btw: http://www.itworld.com/nl/unix_sys_adm/06272001/ http://unix.t-a-y-l-o-r.com/VMblank.html http://groups-beta.google.com/group/comp.lang.perl.misc/browse_thread/thread/6521c310c7b32940/d4910450d920f281 perl -i.bak -ne "print if /\S/" file