Article View: es.comp.os.linux.programacion
Article #6597Re: Instruccion IF en BASH
From: zd
Date: Sat, 07 Jun 2003 06:13
Date: Sat, 07 Jun 2003 06:13
41 lines
2223 bytes
2223 bytes
Respuesta al mensaje de: sio2 <sio2.arr@ba.online.fr>.
Con identificador: <slrnbe1iul.6vv.sio2.arr@cebolleta.net.dhis.org>.
> El viernes, 06 de junio de 2003, a las 18:21 GMT, Bypper escribi�:
>> Sabeis como seria la instruccion IF de BASH con AND?
> Yo cuando tengo alguna duda sobre la evaluaci�n l�gica consulto la
> p�gina de manual de test:
> man test
S�lo un escueto apunte:
#v+
[zeles*tty1]-[serenus]-[~]
$ type test
test is a shell builtin
[zeles*tty1]-[serenus]-[~]
$ help test
test: test [expr]
Exits with a status of 0 (trueness) or 1 (falseness) depending on
the evaluation of EXPR. Expressions may be unary or binary. Unary
expressions are often used to examine the status of a file. There
are string operators as well, and numeric comparison operators.
...
#v-
En este caso particular, el manual a consultar te lo da la orden
"help" :).
Cordialmente, Zeles.
PD.: S�, son realmente parecidos. Es por dar un poco de guerra :P.
--
Zeles Derel (zeldere) / [.zd]
* Direcci�n: zeldere_nntp@yahoo.es
* GNU/Linux - LFS 3.1
Technical Details
Message-ID:
<bbrvpe$cls3u$1@ID-130393.news.dfncis.de>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!feed.news.nacamar.de!fu-berlin.de!uni-berlin.de!cable223a208.usuarios.retecal.ES!not-for-mailReferences:
<20030606182107.3a4e80f9.bypper@tomate.fadlan.com> <slrnbe1iul.6vv.sio2.arr@cebolleta.net.dhis.org>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-06 23:13:04 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!feed.news.nacamar.de!fu-berlin.de!uni-berlin.de!cable223a208.usuarios.retecal.ES!not-for-mail From: zd <zeldere_nntp@yahoo.es> Newsgroups: es.comp.os.linux.programacion Subject: Re: Instruccion IF en BASH Date: 7 Jun 2003 06:13:02 GMT Lines: 41 Message-ID: <bbrvpe$cls3u$1@ID-130393.news.dfncis.de> References: <20030606182107.3a4e80f9.bypper@tomate.fadlan.com> <slrnbe1iul.6vv.sio2.arr@cebolleta.net.dhis.org> Reply-To: zeldere_nntp@yahoo.es NNTP-Posting-Host: cable223a208.usuarios.retecal.es (212.183.223.208) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: fu-berlin.de 1054966382 13299838 212.183.223.208 (16 [130393]) User-Agent: slrn/0.9.7.3 (Linux)