Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: get array of integers?
- X-seq: zsh-users 10667
- From: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>
- To: Roman Cheplyaka <roman.cheplyaka@xxxxxxxxx>
- Subject: Re: get array of integers?
- Date: Sun, 3 Sep 2006 16:34:21 -0500
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <20060903202750.GB23212@localdomain>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <6a42eec70609030959t2a764bfm36fea2c4783f4f01@xxxxxxxxxxxxxx> <20060903202750.GB23212@localdomain>
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