Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Apr 1998 18:57:15 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Dean Hollister <dean@odyssey.apana.org.au>
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: bash question
Message-ID:  <19980407185715.20061@freebie.lemis.com>
In-Reply-To: <Pine.BSF.3.96.980407162346.22039A-100000@odyssey.apana.org.au>; from Dean Hollister on Tue, Apr 07, 1998 at 04:25:33PM %2B0800
References:  <19980407173852.47780@freebie.lemis.com> <Pine.BSF.3.96.980407162346.22039A-100000@odyssey.apana.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue,  7 April 1998 at 16:25:33 +0800, Dean Hollister wrote:
> On Tue, 7 Apr 1998, Greg Lehey wrote:
>
>> It's in the man page for test(1).  The name [ is a synonym for test:
>
> Thanks. Now another obvious question. If I:
>
> echo "Text" | bash-script
>
> What "value" is the about output going into the script assigned to, ie,
> from within the script, to put "text" into a string would require:
>
> string=?

If you want the complete input, 
  
  string=$* 

You can also split it into individual parameters ($1, $2, etc.).

Greg

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980407185715.20061>