On Thu, Aug 31, 2000 at 07:59:31PM +0200, Dan Zetterstrom wrote:
> Why not use the "function" we already got, tr? Something like:
> 
> tr///l       # Translate only _l_eading characters matching.
> tr///t       # Translate only _t_railing characters matching.
>
> With "Only leading" I mean translate from start/end until you find a
> character not matching. Then you can do nifty things such as:

Um, that would radically change the meaning of tr///.  Better to use
s/^// and s/$//.

-Scott
-- 
Jonathan Scott Duff
[EMAIL PROTECTED]

Reply via email to