🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Instruccion IF en BASH

#6609
From: Bypper
Date: Sun, 08 Jun 2003 11:20
36 lines
1987 bytes
Y con CASE?

Fri, 06 Jun 2003 19:26:19 +0200:
Edu <zoyeredu@yahoo.com> escribio:

> 
> Esto tambi�n funcionar�a:
> 
> 	if [ $VARIABLE -eq 4 ] && [ $VARIABLE -eq 1 ]; then
> 
> Se me hace m�s facil de leer.
> 
> Saludos
> 
> Edu
> 
> On Fri, 6 Jun 2003 18:21:07 +0000, Bypper <bypper@tomate.fadlan.com>
> wrote:
> 
> >Sabeis como seria la instruccion IF de BASH con AND?
> >
> >me canta error de todas, todas :-(
> >
> >if [ $VARIABLE -eq 4 and $VARIABLE -eq 1 ]; then
> >	loquesea
> >fi
> >
> >y he probado otras variantes pero nada
> 


-- 
Agur,
Alberto

"nCESTITARIA M'OONITOR PRA VERque S TOY ESRIBIENDO ..."
Technical Details
Message-ID: <20030608112029.6aab733a.bypper@tomate.fadlan.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor-online.net!fu-berlin.de!uni-berlin.de!227.red-80-34-69.pooles.rima-tde.NET!not-for-mail
References: <20030606182107.3a4e80f9.bypper@tomate.fadlan.com> <2kj1evkm5vpvbu4a84jqcdqaqmreuj2o2n@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,a4f2f52955aaa8ff
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-06-08 21:25:55 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor-online.net!fu-berlin.de!uni-berlin.de!227.red-80-34-69.pooles.rima-tde.NET!not-for-mail
From: Bypper <bypper@tomate.fadlan.com>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Instruccion IF en BASH
Date: Sun, 8 Jun 2003 11:20:29 +0000
Organization: MICA, S.A.
Lines: 36
Message-ID: <20030608112029.6aab733a.bypper@tomate.fadlan.com>
References: <20030606182107.3a4e80f9.bypper@tomate.fadlan.com>
 <2kj1evkm5vpvbu4a84jqcdqaqmreuj2o2n@4ax.com>
NNTP-Posting-Host: 227.red-80-34-69.pooles.rima-tde.net (80.34.69.227)
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 1055132754 14906046 80.34.69.227 (16 [131209])
X-Orig-Path: 127.0.0.1!nobody
X-Newsreader: Sylpheed version 0.7.4 (GTK+ 1.2.10; i386-debian-linux-gnu)
X-Face: "A1)Lg/`9S.EhA3fB]Ov1ei`U}b8FIKn0?R$'>8nr:p;Oi~ZGQ0V#l#bP8(}S?80UL;^?T$J<mM$K1pxJp,6SI\fd/[zzat03&h2-\2Qffk1,kt|Lvs@;(p>Au*_,'djl~5FH_tI*ri&W*&jVtMu}Cy$W*"0Jn.~S0PXW\2/:lB/.x.FOrxPMnF`jb?c