From owner-freebsd-questions Tue Apr 7 02:27:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA24148 for freebsd-questions-outgoing; Tue, 7 Apr 1998 02:27:28 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA24122 for ; Tue, 7 Apr 1998 02:27:22 -0700 (PDT) (envelope-from grog@lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.8.7/8.8.5) with ESMTP id SAA12623; Tue, 7 Apr 1998 18:57:15 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id SAA07801; Tue, 7 Apr 1998 18:57:15 +0930 (CST) (envelope-from grog) Message-ID: <19980407185715.20061@freebie.lemis.com> Date: Tue, 7 Apr 1998 18:57:15 +0930 From: Greg Lehey To: Dean Hollister Cc: FreeBSD Questions Subject: Re: bash question References: <19980407173852.47780@freebie.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: ; from Dean Hollister on Tue, Apr 07, 1998 at 04:25:33PM +0800 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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