RE: a question about shell script

2003-03-14 Thread Terry Hobart
acobs Sent: Thursday, March 13, 2003 3:41 PM To: [EMAIL PROTECTED] Subject: Re: a question about shell script On Thu, 13 Mar 2003, Jihuang Zhou wrote: > Anybody knows how to get an input parameter list from the second > parameter to the second last? For example, if $*="aa bb cc

RE: a question about shell script

2003-03-13 Thread Cowles, Steve
> -Original Message- > From: Jihuang Zhou > Sent: Thursday, March 13, 2003 4:42 PM > Subject: a question about shell script > > > Hi list, > Anybody knows how to get an input parameter list from the second > parameter to the second last? > For example, if $

Re: a question about shell script

2003-03-13 Thread Todd A. Jacobs
On Thu, 13 Mar 2003, Jihuang Zhou wrote: > Anybody knows how to get an input parameter list from the second > parameter to the second last? For example, if $*="aa bb cc mm nn", Why not just shift away the first parameter? foo=$1 shift bar="$*" -- Guvf gntyvar jnf r

a question about shell script

2003-03-13 Thread Jihuang Zhou
Title: a question about shell script Hi list, Anybody knows how to get an input parameter list from the second parameter to the second last? For example, if $*="aa bb cc mm nn", I need the "bb ... mm". Here, the number n may change. Any commad like substr i