Article View: es.comp.os.linux.programacion
Article #1128Re: BASH SCRIPTING
From: gamo
Date: Tue, 14 Mar 2006 10:39
Date: Tue, 14 Mar 2006 10:39
27 lines
1849 bytes
1849 bytes
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-1437292913-1142332780=:20212 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE On Tue, 14 Mar 2006, Einherjar wrote: > Tengo que hacer un comando con varios parametros, me pregunto si hay algu= n > ejemplo (de como programar el checkeo de parametros), en mi sistema. > Tengo varios scripts bash/perl/etc.. pero ninguno de lo que necesito. > Por ejemplo el 'ls' un comando con muchisimos parametros... Donde puedo > ver algo tan bien echo? > Es un bucle dentro del $* y preguntar? >=20 > Muchas Gracias. >=20 En Perl se usa Getopt-Long-2.35.tar.gz Lo jorobado no es que haya muchos par=E1metros, sino que estos tomen=20 diferentes valores: p.ej. -file=3D"data.dat"=20 Saludos PD: ese 'bien echo' es con hache=20 --8323328-1437292913-1142332780=:20212--
Technical Details
Message-ID:
<Pine.LNX.4.64.0603141136360.20212@jvz.es>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.telecable.es!cm-83-97-181-149.telecable.es!amoReferences:
<pan.2006.03.14.09.25.52.986606@yahoo.co.uk>Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,20eb7f9ba66ce297 X-Google-Attributes: gidf86c8,public X-Google-Language: SPANISH,ASCII Newsgroups: es.comp.os.linux.programacion Date: Tue, 14 Mar 2006 11:39:40 +0100 From: gamo <gamo@telecable.es> X-X-Sender: amo@jvz.es Reply-To: gamo@telecable.es Subject: Re: BASH SCRIPTING In-Reply-To: <pan.2006.03.14.09.25.52.986606@yahoo.co.uk> Message-ID: <Pine.LNX.4.64.0603141136360.20212@jvz.es> References: <pan.2006.03.14.09.25.52.986606@yahoo.co.uk> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1437292913-1142332780=:20212" NNTP-Posting-Host: 83.97.181.149 X-Trace: filemon1.isp.telecable.es 1142332727 83.97.181.149 (14 Mar 2006 11:38:47 +0100) Organization: TeleCable, S.A.U. Lines: 27 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.telecable.es!cm-83-97-181-149.telecable.es!amo