Article View: es.comp.os.linux.programacion
Article #9732Re: shell script
From: HARE
Date: Thu, 23 May 2002 16:06
Date: Thu, 23 May 2002 16:06
38 lines
2788 bytes
2788 bytes
jooooooder pero si es djpolo!!!!! komo ke no voy a saber kien eres?? ke bueno, ke tal te va tio, lo ke menos me esperaba era enkontrarte aki jejeje, ke bueno, hace poko me mando un korreo juanky tio, decia ke seguia kon lucia y ke a ver si kedamos algun dia, ke bueeeeeeeenoooooo......en fin, el kaso, o mejor dicho mi problema es ke necesito hacer un script ke sume los numeros que se le pasan komo argumentos, y komprobar ke son todos numericos, es una chorrada, pero no sabia si habia alguna orden ke lo hiciera, en basic esta isnumeric() ke te lo dice, pero aki ni idea, el kaso es ke he terminado haciendo un expr $1 + 1 y viendo si $? es 2 entonces se ke no es numerico.....ke bueno, me alegro de verte, y por cierto, por ke pensaste ke no sabria kien eres??? dpolo7@hotmail.com :-D, un saludo men! > Que tal Hare ?? > Haciendo preguntillas en las news ehhhh !!! > Ahora mismo no sabr�s quien soy. Te doy una pista: HelpDeskEstratel !!!! > Un saludo y a ver si adivinas quien soy. > > Respecto a tu pregunta, no s� muy bien a qu� te refieres. No s� si te > refieres a comprobar el contenido de la vble. o a comprobar si fue declarada > como una vble. num�rica o string (cosa que no s� si se puede realizar en > shell script). > > Un saludo tronk. > > > > HARE <miguel@nalsite.com> escribi� en el mensaje de noticias > LAPF8.34865$s6.265112@telenews.teleline.es... > > hola a todos; > > sabria alguin decirme si hay alguna orden que me diga si el contenido de > una > > variable es numerico?? > > isnumeric() o algo asi? > > > > > >
Technical Details
Message-ID:
<qs8H8.2850$kC5.22383@telenews.teleline.es>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!mango.news.easynet.net!easynet-melon!easynet.net!news.rediris.es!nsnmrro1-lo.nuria.telefonica-data.net!nsnmpen1-lo.nuria.telefonica-data.net!telenews.teleline.es!not-for-mailReferences:
<LAPF8.34865$s6.265112@telenews.teleline.es> <xw5G8.978$GE2.13891@telenews.teleline.es>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,718dd2fff78389e1 X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2002-05-23 09:08:18 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!mango.news.easynet.net!easynet-melon!easynet.net!news.rediris.es!nsnmrro1-lo.nuria.telefonica-data.net!nsnmpen1-lo.nuria.telefonica-data.net!telenews.teleline.es!not-for-mail X-Trace-PostClient-IP: 80.34.55.59 From: "HARE" <miguel@nalsite.com> Newsgroups: es.comp.os.linux.programacion References: <LAPF8.34865$s6.265112@telenews.teleline.es> <xw5G8.978$GE2.13891@telenews.teleline.es> Subject: Re: shell script Lines: 40 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <qs8H8.2850$kC5.22383@telenews.teleline.es> Date: Thu, 23 May 2002 16:06:46 GMT NNTP-Posting-Host: 10.20.31.4 X-Complaints-To: usenet@teleline.es X-Trace: telenews.teleline.es 1022170006 10.20.31.4 (Thu, 23 May 2002 18:06:46 MET DST) NNTP-Posting-Date: Thu, 23 May 2002 18:06:46 MET DST Organization: Terra Networks