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

Re: Bug en el bash?



El Fri, Sep 07, 2001 at 10:29:39AM +0200, Antonio Beamud Montero dijo:

> Estaba probando un script y me he dado cuenta que falla en 2 ocasiones:
> Este es el trozo de script:
> MES=`date +%m`
> MESANT=$[$MES-1]

¿y por qué no pones mejor 
MES=`date +%-m`
y así obtienes 8 en lugar de 08?

Salu2, Miguel.

-- 
The biggest difference between time and space is that you can't reuse time.
                -- Merrick Furst
  
Powered by Debian GNU/LiNUX sid - Kernel 2.4.9



Reply to: