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
> -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 $
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
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