[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: feature request: ${ regex s expander, and multiple expandrs inside o
From: |
felix |
Subject: |
Re: feature request: ${ regex s expander, and multiple expandrs inside one |
Date: |
Mon, 8 Feb 2021 18:08:38 +0100 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Fri, Feb 05, 2021 at 09:29:49PM +0100, Alex fxmbsw7 Ratchev wrote:
> ..
>
> var=mynewfoo
> printf ${var~~n[^f]+}
> ->
> myfoo
>
> and also multiple expanders inside one statement would greatly speed up
> processment and also fulfill old greatly coding wanting possibilities
This could be done by:
var=mynewfoo
echo ${var/n*f/f}
myfoo
--
FĂ©lix Hauri - <felix@f-hauri.ch> - http://www.f-hauri.ch