Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: lines to array



From: Peter Stephenson <pws@xxxxxxx>
Subject: Re: lines to array 
Date: Wed, 14 Feb 2007 16:58:51 +0000

Thanks Peter! :)
That helps me a lot!

mcc



> Meino Christian Cramer wrote:
> >  One additional question: Is there a zshy way to sort
> >  the array and throw away any doubled entry ?
> 
> This is also documented:
> 
> typeset -U array
> print ${(o)array}
> 
> The -U flag applies when the array is set, the (o) flag when it
> is output.  There's no way to specify that the array is always sorted;
> you have to assign
> 
> array=(${(o)array})
> 
> -- 
> Peter Stephenson <pws@xxxxxxx>                  Software Engineer
> CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
> Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070
> 
> 
> To access the latest news from CSR copy this link into a web browser:  http://www.csr.com/email_sig.php
> 
> To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview



Messages sorted by: Reverse Date, Date, Thread, Author