I'm launching a course about Next.js + React.jsLearn more

Bash: Uppercase, Lowercase

2018-01-21 · 1 min read

In Bash 4, to lowercase:

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

and to uppercase:

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

My Tech Newsletter

Get emails from me about programming & web development. I usually send it once a month