🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #12229

Re: Bash

#12229
From: Francisco F. Artese
Date: Fri, 17 Aug 2001 15:19
52 lines
2645 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gonzalo Paniagua Javier <gpanjav@jazzfree.com> escribi�:
> Francisco F. Artese <frank@artese.com.ar> escribi�:

>        Toma. Aqu� lo tienes. :-)

> ************
> #!/bin/bash

> horac=`date | cut -f4 -d" " | cut -f1 -d":"`
> minutosc=`date | cut -f4 -d" " | cut -f2 -d":"`
> segundosc=`date | cut -f4 -d" " | cut -f3 -d":"`

> hc=`expr ${horac} \* 60 + ${minutosc} + ${segundosc} / 60`

> echo $hc
> ***********

Hojala!!! lo tenga Gonzalo.

este es el resultado:
expr: error de sintaxis

No se.. sigo insistiendo que el error es porque horac es un literal y no
una variable num�rica.

Por eso mi pregunta original era como convertir horac en num�rica, pero
me contestaron que no hacia falta.
entonces porque no funciona ninguna de las sintaxis que amablemente me
suger�s ?????????????????

Sigo volvi�ndome locoooooo!!!! con este bash maldito.

- -- 
 WinError 02F: Illegal operation has caused an general error while
sharing resources with task 00BFD4 running under DOS window at 3B0 mode
and memory latency mode at 1-3-3-3. Please tell us what this means.
==============================================================
   Francisco F. Artese - Linux user #174223 - ICQ #17693614
            Linux Debian Potato 2.2 and IceWM 1.0.3
	         LAS MALVINAS SON ARGENTINAS!
==============================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7fTX+kdq1r8MtrroRAsZsAJ0ee9NM2o8/ruyORrczdmg435AyIQCgkoKb
04eJVHSlRRVikOszT6pqMIY=
=G77U
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <ulcjl9.8v1.ln@127.0.0.1>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!200.68.207.70!not-for-mail
References: <hj97l9.p7j.ln@127.0.0.1> <slrn9nj7i2.b7.claudio@cacho.celta> <rgehl9.4u3.ln@127.0.0.1> <etfil9.tb.ln@127.0.0.1>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,9df979b8f9cb249b
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-08-17 08:27:46 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!200.68.207.70!not-for-mail
From: "Francisco F. Artese" <frank@artese.com.ar>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Bash
Date: Fri, 17 Aug 2001 12:19:26 -0300
Lines: 52
Message-ID: <ulcjl9.8v1.ln@127.0.0.1>
References: <hj97l9.p7j.ln@127.0.0.1> <slrn9nj7i2.b7.claudio@cacho.celta> <rgehl9.4u3.ln@127.0.0.1> <etfil9.tb.ln@127.0.0.1>
NNTP-Posting-Host: 200.68.207.70
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 998062063 10119108 200.68.207.70 (16 [42069])
X-Orig-Path: not-for-mail
User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (Linux/2.2.17 (i686))