Re: Bash capital–non-capital substitution

Johnny Rosenberg gurus.knugum at gmail.com
Mon Oct 28 20:16:27 UTC 2013


2013/10/28 Wes James <comptekki at gmail.com>

>
>
>
> 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
>

Well, it's still two steps… but interesting anyway!


Johnny Rosenberg


>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20131028/a19056d1/attachment.html>


More information about the ubuntu-users mailing list