From owner-freebsd-questions Tue Apr 7 02:02:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA22108 for freebsd-questions-outgoing; Tue, 7 Apr 1998 02:02:39 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from caladan.tdx.co.uk (caladan.tdx.co.uk [195.188.177.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA22094 for ; Tue, 7 Apr 1998 02:02:34 -0700 (PDT) (envelope-from kpielorz@tdx.co.uk) Received: from tdx.co.uk (lorca-tx.tdx.co.uk [195.188.177.242]) by caladan.tdx.co.uk (8.8.8/8.8.8) with ESMTP id KAA00404; Tue, 7 Apr 1998 10:02:11 +0100 (BST) (envelope-from kpielorz@tdx.co.uk) Message-ID: <3529EB8E.EDEE00F0@tdx.co.uk> Date: Tue, 07 Apr 1998 10:02:06 +0100 From: Karl Pielorz Organization: TDX X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: Dean Hollister , questions@FreeBSD.ORG Subject: Re: bash question References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Oops.. (thanks for pushing it to the list... ) Assuming: echo "hello" | ./myscript Try: read string (as the scripts standard input will have the 'hello' arriving on it)... You'll need to parse the 'string' then if you want it split up into bits etc... Regards, Karl Dean Hollister wrote: > > On Tue, 7 Apr 1998, Karl Pielorz wrote: > > > Hi, > > > > Try: > > > > string=$1 > > No. That would only be useful if I did: > > scriptname inputofsomesort > > which isn't happening. I'm piping a line of text into a bash script. > > Regards, > > d. > > +-------------------------------------------------------+ > | Dean Hollister, | dean@odyssey.apana.org.au | > | Perth, Western Australia. | deanh@iinet.net.au | > +-------------------------------------------------------+ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message