Date: Tue, 07 Apr 1998 10:02:06 +0100 From: Karl Pielorz <kpielorz@tdx.co.uk> To: Dean Hollister <dean@odyssey.apana.org.au>, questions@FreeBSD.ORG Subject: Re: bash question Message-ID: <3529EB8E.EDEE00F0@tdx.co.uk> References: <Pine.BSF.3.96.980407165826.24955A-100000@odyssey.apana.org.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Oops.. (thanks for pushing it to the list... <g>) 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3529EB8E.EDEE00F0>