From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1977 invoked from network); 2 Dec 1998 16:28:12 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 2 Dec 1998 16:28:12 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id LAA17492; Wed, 2 Dec 1998 11:17:36 -0500 (EST) Resent-Date: Wed, 2 Dec 1998 11:17:30 -0500 (EST) Message-ID: <19981202171631.A22466@willkuere.informatik.uni-wuerzburg.de> Date: Wed, 2 Dec 1998 17:16:31 +0100 From: Thomas Koehler To: ZShell Users List Subject: Re: counting in "for" loops References: <19981202170030.A2789@math.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Mailer: Mutt 0.93 In-Reply-To: <19981202170030.A2789@math.fu-berlin.de>; from Sven Guckes on Wed, Dec 02, 1998 at 05:00:32PM +0100 X-Operating-System: Linux willkuere 2.0.35 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by math.gatech.edu id LAA17428 Resent-Message-ID: <"AYPH41.0.UG4.QWMPs"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1952 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Wed, Dec 02, 1998 at 05:00:32PM +0100, Sven Guckes wrote: > Again, I look at the manual and I cannot find > how to do a simple count within a for loop. > > $ for count in ???; do > > echo -n $count > > done > 1 2 3 4 5 6 7 8 9 10 > > What do I need for "???"? > Why isn't this in the manual as an example? *sigh* for i in {1..10} ; do echo -n "$i " ; done > Sven HTH, Thomas P.S.: Documentation could be better organized ;-) -- Thomas Köhler Email: jean-luc@picard.franken.de <>< WWW: http://home.pages.de/~jeanluc/ IRC: jeanluc LCARS --- Linux for Computers on All Real Starships