Re: Bash capital–non-capital substitution

Wes James comptekki at gmail.com
Mon Oct 28 19:48:24 UTC 2013


On Sat, Oct 26, 2013 at 6:53 AM, Johnny Rosenberg <gurus.knugum at gmail.com>wrote:

<snip>


>
>

>
> I can do it in two steps, of course:
> y=${x,,}; echo ${y^} → Hello
>

Got this from bash irc.  Not sure it helps:

s="HELLO WORLD"
read -ra arr <<< ${s,,}; echo "${arr[@]^}"
Hello World
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20131028/00d49dde/attachment.html>


More information about the ubuntu-users mailing list