[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] I am an idiot
- Subject: [ale] I am an idiot
- From: jason_lynn_ at hotmail.com (Jason Lynn)
- Date: Tue, 26 Jun 2001 16:03:29 -0500
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.