[ale] I am an idiot

Jason Lynn jason_lynn_ at hotmail.com
Tue Jun 26 17:16:11 EDT 2001


THANK YOU!


>From: Chris Fowler <ChrisF at computone.com>
>To: 'Jason Lynn' <jason_lynn_ at hotmail.com>, ale at ale.org
>Subject: RE: [ale] I am an idiot
>Date: Tue, 26 Jun 2001 17:12:17 -0400
>MIME-Version: 1.0
>Received: from [160.77.1.155] by hotmail.com (3.2) with ESMTP id 
>MHotMailBD0244A20063400438DFA04D019B0CE10; Tue, 26 Jun 2001 14:07:46 -0700
>Received: by mustang.computone.com with Internet Mail Service 
>(5.5.2650.21)id <MXNN07P7>; Tue, 26 Jun 2001 17:12:18 -0400
>From ChrisF at computone.com Tue, 26 Jun 2001 14:08:21 -0700
>Message-ID: <95B97DD42B78D31193A8005004D1E05C413C7F at mustang.computone.com>
>X-Mailer: Internet Mail Service (5.5.2650.21)
>
>#!/bin/ksh
>#
>STRING="hello|goodbye"
>
>VAR1=`echo $STRING | cut -d'\|' -f1`
>VAR2=`echo $STRING | cut -d'\|' -f2`
>
>#END
>
>
>
>
>
>-----Original Message-----
>From: Jason Lynn [mailto:jason_lynn_ at hotmail.com]
>Sent: Tuesday, June 26, 2001 5:03 PM
>To: ale at ale.org
>Subject: [ale] I am an idiot
>
>
>Now that that's out of the way... here's my problem.
>
>#!/bin/ksh
>#
>echo AARGH!
>exit 0
>
>I need some way to do some basic string manipulation that works both for
>Linux and Solaris (out of the box).  I basically need to take a string like
>"hello|goodbye" and split that string into two components, hello and 
>goodbye
>
>(assign them to shell variables, etc.) by a delimeter such as '|'.  I
>thought everything was going well when I used expr to do just that.  No
>problems in Linux.  It appears, though, that functions like substr, length,
>etc are NOT supported in sparc Solaris.  So I looked into awk and sed (for
>the first time), which only served to piss me off even more.  Can anyone
>help me with this one?
>
>Thanks in advance,
>Jason
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>--
>To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message
>body.

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list