shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [shell-script] Contando em shell


From: Felipe Kellermann
Subject: Re: [shell-script] Contando em shell
Date: Mon, 7 Jul 2003 15:54:14 -0300 (BRT)

On Mon, 7 Jul 2003 3:48pm  -0300, Mauricy Maiorino wrote:

> n=1
> nn=$(($n+1))    <====== neste ponto até soma, mas ele não acrescenta 1 a
> cada for para ir aumentando...
> echo "$nn) $i"

        n=1
        nn vai ser sempre n+1, use n=$((n++)) e echo $n) $i,

-- 
Felipe Kellermann


reply via email to

[Prev in Thread] Current Thread [Next in Thread]