Re: lastunique?

From: Stephane CHAZELAS (this.address_at_is.invalid)
Date: 12/10/03


Date: Wed, 10 Dec 2003 12:32:50 +0100

2003-12-10, 12:11(+01), Stephane CHAZELAS:
[...]
> (note that it strips empty lines; if you don't want it, change
> it to:
> IFS=$'\n\n'; print -rl -- ${(Oau)${(Oa)$(cat a)}}
> )

Well, it still ignores the trailing empty lines because of
command substitution.

IFS=$'\n\n'; print -rl -- ${(Oau)${(Oa)$(cat file;echo .)[1,-2]}}

-- 
Stéphane                      ["Stephane.Chazelas" at "free.fr"]