On Mon, Sep 30, 2002 at 02:51:54PM -0400, Uri Guttman wrote: > >>>>> "Y" == Yanick <[EMAIL PROTECTED]> writes: > > no one seems to have seen my earlier post on this so here it is again > and it is much shorter. > > Y> perl -pe'/\S/?($e=0):($e++and$_="")' filename > perl -0777pe's/^\s*\n/\n/m' file perl -0pe's/^\s*$//mg' file `/.
-- 1. Protect and Nurture Yours. 2. Never Unnecessarily Hurt. 3. Create Beauty. 4. For the Rest, Go Wild.