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

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

Re: [shell-script] Subtração


From: Victor Pereira
Subject: Re: [shell-script] Subtração
Date: Wed, 11 Oct 2000 19:37:49 -0300

vc faria assim
$DIANT=`expr $DIA '-' 5`

man expr

[ ]'z

zyon:/work#cd /pub
zyon:/pub#more beer
zyon:/pub#cd ~
zyon:~#sleep 18h && poweroff
___________________________________
Victor Alexandre do Valle Pereira
Unix, Security, Networking, Eleet Coding
Módulo Security Solutions -SP - Brasil
ICQ Number:163
----- Original Message -----
From: "Rodrigo Bernardo Pimentel" <address@hidden>
To: <address@hidden>
Sent: Wednesday, October 11, 2000 4:08 PM
Subject: Re: [shell-script] Subtração


> On Wed, Oct 11 2000 at 03:49:46pm -0300, Marcos M. S. Rezende wrote:
> > PessoALL,
> >
> > Como eu faço para subtrair de uma váriavel um dado valor?
> >
> > Ex.: DiaAnt=$Dia - 5
>
>         DiaAnt=$(( $Dia - 5 ))
>
>         (os espaços são por fins didáticos ;)
>
>
>
>                 rbp
>
____________________________________________________________________________
__
>  Rodrigo Bernardo Pimentel <address@hidden>|  GPG KeyID:
0x81F85A48
>  LinuxSP                 <http://www.linuxsp.org.br>|      Fingerprint:
>  AirGeeks                  <http://www.airgeeks.org>|7E62 9CA2 C95B FC86
B334
> ____________<http://www.conectiva.com.br>___________|203E C011 2E4D 81F8
5A48
> If someone with multiple personalities threatens to kill himself,
> is it considered a hostage situation?
>
>
> Inscrição:     address@hidden
>
> Sair da lista: address@hidden
>
> Banco Dados:   http://www.egroups.com/group/shell-script
>



reply via email to

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