cc: [email protected]
Subject: Re: Re: Re: [uwin-users] Korn shell patterns
--------
> 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"?
>
>
There are several ways, for example
${string/s@(*)g/\1}
or
${string/?@(*)?/\1}
David Korn
[email protected]
_______________________________________________
uwin-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/uwin-users