Skip to Content.
Sympa Menu

baslinux - [BL] bash

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: qwms-avib AT dea.spamcon.org
  • To: baslinux AT lists.ibiblio.org
  • Subject: [BL] bash
  • Date: Sun, 27 Apr 2003 10:46:54 +0000

Constant Brouerius van Nidek wrote:
>
> From dos I remember that I could count the times
> that a loop was running. Could also from Lotus 123
> though. Something like
> count=1
> ......
> count +1
> loop

In bash, you can count like this:
----------------------
count=1
until [ $count = 10 ]
do
echo $count
let count=count+1
done
----------------------

Cheers,
Steven




Archive powered by MHonArc 2.6.24.

Top of Page