๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

RE: BASH

#12230
From: Luigi
Date: Fri, 17 Aug 2001 18:56
20 lines
1348 bytes
hola,
con expr, no recuerdo la sintaxis exacta, mejor mira la ayuda.

salu2

>
> Hola amigos:
>
> Es posible convertir una variable literal a num๏ฟฝrica:
>
> Si tengo:
>
> h=echo "date" | cut -f4 -d" " | cut -f1 -d":"
>
> Como transformo $h para poder hacer $h + 1000 ????
>
> si hago VALOR=$[($h+1000] no funca ;-(
>
> Saludos
> - --
Technical Details
Message-ID: <998074303.850960@usproxy1>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!newsfeed.bcn.ttd.net!news.bcn.ttd.net!not-for-mail
References: <3edhl9.ec3.ln@127.0.0.1>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,b00c3e5185002391
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-08-17 11:56:38 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!newsfeed.bcn.ttd.net!news.bcn.ttd.net!not-for-mail
From: "Luigi" <roberto_gamonal@hotmail.com>
Newsgroups: es.comp.os.linux.programacion
Subject: RE: BASH
Date: Fri, 17 Aug 2001 20:56:52 +0200
Organization: Ye 'Ol Disorganized NNTPCache groupie
Lines: 23
Message-ID: <998074303.850960@usproxy1>
References: <3edhl9.ec3.ln@127.0.0.1>
NNTP-Posting-Host: 195.53.31.18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Cache-Post-Path: usproxy1!unknown@usproxy3-int
X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/)