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

Re: get array of integers?



On Sun, Sep 03, 2006 at 09:59:21AM -0700, sam reckoner wrote:
>    I have been doing
> 
>    x=$(){1..10}
> 
>    to get a range of integers. Is there a better way? Also, how can I get a
>    range that steps by 2 instead of by 1 as in
> 
>    1 3 5 7 ...
Take a look at seq(1).

-- 
Roman I. Cheplyaka



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