Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site pixutl.UUCP
Path: utzoo!watmath!clyde!cbosgd!ihnp4!mhuxn!mhuxr!ulysses!allegra!mit-eddie!genrad!panda!talcott!wjh12!pixel!pixutl!chris
From: chris@pixutl.UUCP (chris)
Newsgroups: net.unix
Subject: Re: KSH substring function (is it on your system?)
Message-ID: <9@pixutl.UUCP>
Date: Tue, 12-Nov-85 16:09:38 EST
Article-I.D.: pixutl.9
Posted: Tue Nov 12 16:09:38 1985
Date-Received: Thu, 14-Nov-85 08:55:06 EST
References: <121@rruxc.UUCP>
Organization: Pixel Systems Inc., Woburn, Mass.
Lines: 21
Keywords: uniformity of KSH's

As long as we're talking about 'substring', 'expr' has a 'substr' option
that used to be documented in V6.

It goes:
	expr substr string n m

	where n is the first character of the sub-string and m the length.

	so:		expr substr abcdefgh 2 4
	gives:		bcde

'expr' also has 'match', 'lentgh', and 'index' options that are not
documented any longer. Anyone knows why?

Chris
-- 

 Chris Bertin            :         (617) 933-7735 x2336
 Pixel Systems Inc.      :	   (800) 325-3342
 300 Wildwood street     :  {allegra|ihnp4|cbosgd|ima|genrad|amd|harvard}\
 Woburn, Ma 01801        :     !wjh12!pixel!pixutl!chris