[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Character clearance in either end front or back
From: |
Reuti |
Subject: |
Re: Character clearance in either end front or back |
Date: |
Thu, 8 Oct 2020 12:00:06 +0200 |
> Am 08.10.2020 um 08:06 schrieb Budi <budikusasi@gmail.com>:
>
> since clearing some character in either end front or back is
> ubiquitous, it should easily, quickly be accomplish by Bash string
> tools e.g. ${# } or ${%}
> but merely
> clearing \\\ as in l=foo\\\
>
> k=${%%\}
To remove all you will need a wildcard:
k=${l%%\\*}
-- Reuti
> can't do and solve it
>
> Bash needs to get fixed or perked up
>