Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: tr alke expansion?
- X-seq: zsh-users 10257
- From: Clint Adams <clint@xxxxxxx>
- To: Marc Chantreux <marc.chantreux@xxxxxxxxxxxxxxxxxx>
- Subject: Re: tr alke expansion?
- Date: Fri, 12 May 2006 11:20:17 -0400
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <4464A5CE.9090603@xxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Marc Chantreux <marc.chantreux@xxxxxxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <4464A5CE.9090603@xxxxxxxxxxxxxxxxxx>
> is there a tr alike expansion in zsh ? something like :
>
> % a=???
> % echo ${a(t:???:eee:)}
> eee
That doesn't look very tr-like. Maybe you want
print ${a/\?\?\?/eee}
or
print ${a//\?/e}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author