ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Taylor <paul_t...@fastmail.fm>
Subject Re: How do you sort and remove duplicates lines from a file ?
Date Tue, 01 Jul 2008 21:48:12 GMT
Matt Benson wrote:
> --- Paul Taylor <paul_t100@fastmail.fm> wrote:
>
>   
>> Wow Matt , that works nicely though not very
>> intuitive I'm not suprised 
>> I couldnt find it. I dont suppose you know howe
>> could I remove the 
>> duplicates lines now that it is sorted. My idea was
>> that I compare the 
>> lines line by line and if the line matches the
>> previous line discard it 
>> but I cant work out how to do it in ant. (Thanks
>> Jane but I need a pure 
>> ant solution)
>>     
>
> The <union> is supposed to cull the dupes for you.  It
> works in my trivial test.  Does it not work for you?
>
> -Matt
>   
Oops, yes it does - show show much I understood it ;)

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message