🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: BASH SCRIPT

#1217
From: Gonzalo Pérez de Olaguer Córdoba
Date: Sat, 25 Feb 2006 11:40
14 lines
1462 bytes
Hola Olaf El Blanco <einherjar@yahoo.es>
el Sat, 25 Feb 2006 11:42:40 +0100 escribiste:

> Quiero que mientras haya parametros, haga una determinada cosa.

while [ $# -gt 0 ]; do
	echo "$1"
	echo "$@"
	shift
done

-- 
Gonzalo Pérez de Olaguer Córdoba <gpoc@iies.es>
PGP key 2861C704 --- F206 5671 6789 425D 111C  1302 214F 1934 2861 C704
Technical Details
Message-ID: <20060225124054.30963dec@petres.salonet.snet>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!news.antakira.com!cagarruta.escomposlinux.org!hercules.escomposlinux.org!escomposlinux.org!not-for-mail
References: <dtpci8$8u6$1@cormoran.emeteo.local>

Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,53d0de41776743f9
X-Google-Attributes: gidf86c8,public
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!news.antakira.com!cagarruta.escomposlinux.org!hercules.escomposlinux.org!escomposlinux.org!not-for-mail
From: Gonzalo Pérez de Olaguer Córdoba <gpoc@iies.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: BASH SCRIPT
Date: Sat, 25 Feb 2006 12:40:54 +0100
Organization: escomposlinux.org
Lines: 14
Message-ID: <20060225124054.30963dec@petres.salonet.snet>
References: <dtpci8$8u6$1@cormoran.emeteo.local>
NNTP-Posting-Host: 59.red-80-25-103.staticip.rima-tde.net
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable
X-Trace: hercules.cohp1 1140867654 5759 80.25.103.59 (25 Feb 2006 11:40:54 GMT)
X-Complaints-To: newsmaster@news-17.escomposlinux.org
NNTP-Posting-Date: Sat, 25 Feb 2006 11:40:54 +0000 (UTC)
X-Newsreader: Sylpheed-Claws 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu)