Article View: es.comp.os.linux.programacion
Article #12641Re: Duda sobre bash.
From: Juan Pablo Hierro Álvarez
Date: Tue, 19 Jun 2001 15:04
Date: Tue, 19 Jun 2001 15:04
26 lines
1713 bytes
1713 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
El Tue, 19 Jun 2001 13:45:07 GMT, Gonzalo Paniagua Javier escribi�:
>------ ejem.sh
>#!/bin/sh
>
>CMD=$1
>shift
>echo El comando es: ${CMD}
>echo Los argumentos: $*
>unset CMD
>exit 0
>
>------ fin de ejem.sj
>
Muchas gracias a ambos, s� con ambos ejemplos es suficiente.
(Incluso un busca shift en la p�gina man de bash habr�a bastado).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjsvZMcACgkQd1aMoahwet8nJACfYIld5B3fvav1AAaZvxjs4L3w
dFsAn1781v4fIjJO2RKmri0TMCV3/FA7
=lNMi
-----END PGP SIGNATURE-----
Technical Details
Message-ID:
<slrn9iup5m.5gd.hierro@otilio.cps.unizar.es>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news.rediris.es!news.unizar.es!hierroReferences:
<slrn9iud2b.40d.hierro@otilio.cps.unizar.es> <pheng9.i81.ln@lalo.micasa>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,626f9d7758489a9b X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2001-06-19 07:47:49 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news.rediris.es!news.unizar.es!hierro From: hierro@no.al.Xspan.es (Juan Pablo Hierro Álvarez) Newsgroups: es.comp.os.linux.programacion Subject: Re: Duda sobre bash. Date: 19 Jun 2001 15:04:32 GMT Organization: L.I.T.E.C. Lines: 26 Message-ID: <slrn9iup5m.5gd.hierro@otilio.cps.unizar.es> References: <slrn9iud2b.40d.hierro@otilio.cps.unizar.es> <pheng9.i81.ln@lalo.micasa> Reply-To: hierro@no.al.Xspan.es NNTP-Posting-Host: otilio.cps.unizar.es Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.unizar.es 992963072 7570 155.210.32.86 (19 Jun 2001 15:04:32 GMT) X-Complaints-To: usenet@news.unizar.es NNTP-Posting-Date: 19 Jun 2001 15:04:32 GMT X-Newsreader: slrn-0.9.6.4 User-Agent: slrn/0.9.6.4 (Linux)