Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: I've forgotten again how to do this --> 0-100
- X-seq: zsh-users 1235
- From: mason@xxxxxxxxxxxxxxx (Geoff Wing)
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: Re: I've forgotten again how to do this --> 0-100
- Date: 15 Jan 1998 22:59:15 GMT
- Organization: A poorly-installed InterNetNews site
- References: <199801151028.KAA21473@xxxxxxxxxxxxxxxx>; from Andrew Main on Thu, Jan 15, 1998 at 10:28:37AM +0000 <19980115153221.55822@xxxxxxxxxxxxxxxxxxxx>
- Reply-to: mason@xxxxxxxxxxxxxxx
Sweth Chandramouli <sweth@xxxxxxxxxxxxxxxxxxxx> typed:
:On Thu, Jan 15, 1998 at 10:28:37AM +0000, Andrew Main wrote:
:> Timothy J Luoma wrote:
:> >for i in 0-100; do
:> > echo $i
:> >done
:> for ((i=0;i<=100;i++)); do
:> echo $i
:> done
:> takes less memory than the brace expansion method.
:how does it compare (memory-wise) to the following:
:while (( $i < 101 )); do
: echo $i
: i=$((i+1))
let i++
:done
--
Geoff Wing [gcw@xxxxxxxxx] Phone : +61-3-9818 2977
Technical Manager: PrimeNet Computer Consultants Facsimile: +61-3-9818 5155
Work URL: http://www.primenet.com.au/ Mobile : 0412 162 441
Ego URL: http://pobox.com/~gcw/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author