|
| From: | Mart Frauenlob |
| Subject: | Re: [Help-bash] ${var//!([[:class:]])} removing characters of the [:class:] |
| Date: | Sun, 27 Jan 2013 09:09:15 +0100 |
| User-agent: | Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 |
On 27.01.2013 04:47, John Kearney wrote: [...]
if you just want to remove non-digits just use
${v//[![:digit:]]}
no need for extglob.
nice, thank you.
| [Prev in Thread] | Current Thread | [Next in Thread] |