Thanks David,
Maybe I need to ask in another way ...
if string=string
Is there a way to get "tri" printed, i.e. delete everything except "tri"?
Quoting David Korn <[email protected]>:
cc: [email protected]
Subject: Re: Re: [uwin-users] Korn shell patterns
--------
Right, so if the matching part is everything except "g" itself, why
isn't everything except "g" subtracted?
Since the pattern !(g) matches every string except the string g itself,
it matches "string".
The largest substring of string that !(g) matches is string itself.
Therefore string is deleted.
David Korn
[email protected]
_____________________________________________
Dr. Douglas R. Houston
Room 3.23
Institute of Structural and Molecular Biology
Michael Swann Building
King's Buildings
University of Edinburgh
Edinburgh, EH9 3JR, UK
Tel. 0131 650 7358
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
_______________________________________________
uwin-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/uwin-users