Article View: es.comp.os.linux.programacion
Article #12227Re: Bash
From: Gonzalo Paniagua Javier
Date: Fri, 17 Aug 2001 07:16
Date: Fri, 17 Aug 2001 07:16
20 lines
1453 bytes
1453 bytes
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
***********
--
"Emacs is a good OS but it lacks a good text editor.
That's why I'm using Vim"
Anonymous
Technical Details
Message-ID:
<etfil9.tb.ln@127.0.0.1>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!Amsterdam.Infonet!News.Amsterdam.UnisourceCS!news.telia-iberia.com!newsf01.!newsr02..POSTED!not-for-mailReferences:
<hj97l9.p7j.ln@127.0.0.1> <slrn9nj7i2.b7.claudio@cacho.celta> <rgehl9.4u3.ln@127.0.0.1>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,9df979b8f9cb249b
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-08-17 00:16:07 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!Amsterdam.Infonet!News.Amsterdam.UnisourceCS!news.telia-iberia.com!newsf01.!newsr02..POSTED!not-for-mail
From: Gonzalo Paniagua Javier <gpanjav@jazzfree.com>
Subject: Re: Bash
Newsgroups: es.comp.os.linux.programacion
References: <hj97l9.p7j.ln@127.0.0.1> <slrn9nj7i2.b7.claudio@cacho.celta> <rgehl9.4u3.ln@127.0.0.1>
User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (Linux/2.4.7-ac9 (i586))
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Message-ID: <etfil9.tb.ln@127.0.0.1>
Lines: 21
Date: Fri, 17 Aug 2001 07:16:28 GMT
NNTP-Posting-Host: 62.42.14.67
X-Trace: newsr02. 998032588 62.42.14.67 (Fri, 17 Aug 2001 09:16:28 MET DST)
NNTP-Posting-Date: Fri, 17 Aug 2001 09:16:28 MET DST