Would somebody please explain?
Cliff Stanford
cliff at demon.co.uk
Tue Apr 23 09:09:06 AEST 1991
In article <1991Apr21.023416.5795 at mp.cs.niu.edu> rickert at mp.cs.niu.edu (Neil Rickert) writes:
>In article <1991Apr21.001702.5661 at umbc3.umbc.edu> rouben at math16.math.umbc.edu (Rouben Rostamian) writes:
>>The command:
>> expr "Match" : "Ma"
>>returns 2, as it should, since the first two characters of "Match" and "Ma"
>>coincide. Now, would somebody please explain why the command:
>> expr "match" : "ma"
>>complains of a "syntax error"?
>
> I just ran: strings /bin/expr
>
> From the output I would guess that 'match', 'index', 'substr' and 'length'
>are builin functions or operators for 'expr', although they are not documented
>in any man pages that I have seen.
>
Well I'm blowed! All those work although I've not seen any
documentation for any one of them. (SCO 3.2.2)
Input Output
----- ------
expr match abcde abc 3
expr index abcde cd 3
expr length abcde 5
expr substr abcde 2 3 bcd
Why doesn't anyone DOCUMENT unix?
Cliff.
--
Cliff Stanford Email: cliff at demon.co.uk (Work)
Demon Systems Limited cms at demon.co.uk (Home)
42 Hendon Lane Phone: 081-349 0063 (Office)
London N3 1TT England 0860 375870 (Mobile)
More information about the Comp.unix.questions
mailing list