Re: shell programming

From: Date: Fri, 20 Jul 2001 15:59:11 +0000
Subject: Re: shell programming
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-60415@lists.php.net to get a copy of this message
Have a look at the $argv variable. Brian Moon ---------------------------------------------------------------------- dealnews.com, Inc. Makers of dealnews, dealmac http://dealnews.com/ | http://dealmac.com/ ----- Original Message ----- From: "void" <ben@hvc.co.za> To: <php-dev@lists.php.net> Sent: Friday, July 20, 2001 4:19 AM Subject: [PHP-DEV] shell programming > I want to send more than 9 parms to a script .. > it doesn't like the 10th parm :( > asume $1 = "blue" > ------------------- inside the script > ....... > ....... > echo $5 >> $7/lineinfo; > echo $8 >> $7/lineinfo; > echo $9 >> $7/lineinfo; > #the tenth parm > echo $10 >> $7/lineinfo; > #the above line outputs "blue0" > echo "$10" >> $7/lineinfo; > #the above line outputs "blue0" as well > > How do i refer 2 the 10th parm passed to a shell script ? > > any help would be apriciated, > > thanx > > Cape Town, > South Africa > > > > > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > >

« previous php.dev (#60415) next »