Re: shell: como incrementar uma variável
Mais uma entao pra fazer a mesma coisa: :-)
let $VARIAVEL=$VARIAVEL+1
Otavio Salvador <otavio@debian.org> escreveu em 27 Oct 2002 01:27:15 -0300:
> Rafael Jannone <jannone@inf.ufrgs.br> writes:
>
> > se a sua variavel for 'c':
> >
> > c=$((c+1))
>
> Se nao me engano $c++ tambem funciona ;)
>
> []s
>
> --
> O T A V I O S A L V A D O R
> ---------------------------------------------
> E-mail: otavio@debian.org UIN: 5906116
> GNU/Linux User: 239058 GPG ID: 49A5F855
> Home Page: http://www.freedom.ind.br/otavio
> ---------------------------------------------
>
>
> --
> To UNSUBSCRIBE, email to debian-user-portuguese-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>
---------------------------
Gleydson Mazioli da Silva
gleydson@debian.org
gleydson@cipsga.org.br
Os peixes odeiam redes, eles preferem sistemas monousuário.
Reply to: