Bash: Uppercase, Lowercase


2018-01-21

In Bash 4, to lowercase:

var = 'Hello, World'
echo ${var,,}
hello, world

and to uppercase:

var = 'Hello, World'
echo ${var^^}
HELLO, WORLD