Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: get array of integers?
- X-seq: zsh-users 10665
- From: Roman Cheplyaka <roman.cheplyaka@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: get array of integers?
- Date: Sun, 3 Sep 2006 23:27:50 +0300
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=kenT+DXADEYcpv/VPCgHC9oykR/WngGYVjiSHZQZ0tW6a/yUYmxiCdlpsAT4wCL69gU/gYoNYZ1KszNs6hjrTVkRj9Lkg5t5B3irmNY/09HajU4mzqCArGEnnQLV10qWK110363DsvCceYfT4LepXjP/onYSlGsZ6hACKfZD/no=
- In-reply-to: <6a42eec70609030959t2a764bfm36fea2c4783f4f01@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <6a42eec70609030959t2a764bfm36fea2c4783f4f01@xxxxxxxxxxxxxx>
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