Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Dec 2004 07:18:54 -0600
From:      Nikolas Britton <freebsd@nbritton.org>
To:        freebsd-newbies@freebsd.org
Subject:   Removing Blank Lines
Message-ID:  <41D4003E.9090403@nbritton.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41D4003E.9090403>