From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24726 invoked from network); 3 Sep 2006 16:59:45 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO,HTML_10_20,HTML_MESSAGE autolearn=no version=3.1.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 3 Sep 2006 16:59:45 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 85368 invoked from network); 3 Sep 2006 16:59:32 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 3 Sep 2006 16:59:32 -0000 Received: (qmail 23830 invoked by alias); 3 Sep 2006 16:59:26 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10663 Received: (qmail 23821 invoked from network); 3 Sep 2006 16:59:25 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 3 Sep 2006 16:59:25 -0000 Received: (qmail 84322 invoked from network); 3 Sep 2006 16:59:25 -0000 Received: from ug-out-1314.google.com (66.249.92.170) by a.mx.sunsite.dk with SMTP; 3 Sep 2006 16:59:22 -0000 Received: by ug-out-1314.google.com with SMTP id c2so2424487ugf for ; Sun, 03 Sep 2006 09:59:21 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=RoUc/FERF+sprPcI75h5Hh4XMfA8l+ct8Ns4tvFXi/FLQFBKgSG8ILsE4MxQqbKHXviYYHxUtMweM9KNwBR1vG7cVNtAYe9uBpHsNfSf0D4IMpRXiJZHuuikWNpGCXkyGsfc9HR9QCBbbBZKBM6TqD7F51gAnDy0G7HYucE5OKc= Received: by 10.67.103.7 with SMTP id f7mr2387450ugm; Sun, 03 Sep 2006 09:59:21 -0700 (PDT) Received: by 10.66.237.19 with HTTP; Sun, 3 Sep 2006 09:59:21 -0700 (PDT) Message-ID: <6a42eec70609030959t2a764bfm36fea2c4783f4f01@mail.gmail.com> Date: Sun, 3 Sep 2006 09:59:21 -0700 From: "sam reckoner" To: zsh-users@sunsite.dk Subject: get array of integers? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_146011_15248555.1157302761156" ------=_Part_146011_15248555.1157302761156 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ... Thanks! ------=_Part_146011_15248555.1157302761156 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ...

Thanks!


------=_Part_146011_15248555.1157302761156--