[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: How to match a substring?



On Wed, Jan 14, 2004 at 05:43:18PM -0500, David Z Maze wrote:
> case `uname -a` in
>   Linux*)

O-oh, I completely missed the possibility not to use awk & friends...

> Which has the minor advantage of only using shell primitives, aside
> from the call out to uname itself.

Heh, yet I have something better :-) :

case "$OSTYPE" in
	...
esac

Cheers,
Jan.

-- 
Jan Minar                   "Please don't CC me, I'm subscribed." x 9

Attachment: pgpBytcZHQ4pv.pgp
Description: PGP signature


Reply to: