Today I Learned
Search…
Changing string case in bash
Posted on 10 Aug, 2021
In newer versions of bash (>=4), changing string case is very intuitive.
x="baSh"
echo $x # baSh
​
echo ${x,,} # bash
​
echo ${x^^} # BASH
Copy link
Edit on GitHub