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

Re: get array of integers?



In the last episode (Sep 03), Roman Cheplyaka said:
> 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).

or jot(1) , depending on what OS you are on.

-- 
	Dan Nelson
	dnelson@xxxxxxxxxxxxxxx



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