Notes & TILs
Search…
Changing string case in bash
Posted on 10 Aug, 2021
In newer versions of bash (>=4), changing string case is very intuitive.
1
x="baSh"
2
echo $x # baSh
3
​
4
echo ${x,,} # bash
5
​
6
echo ${x^^} # BASH
Copied!
Last modified 1mo ago
Copy link