Use bash 4.x parameter expansion to convert string on a Linux/Unix/macOS/*BSD:
var="This is a test"
echo "${var~~}" # Reverse var #
echo "${var^^}" # UPPERCASE var #
echo "${var,,}" # lowercase var #
More here cyberciti.biz/tips/bash-shel…
A few of our Linux Journal family members are suddenly, unexpectedly laid off. I’d like to see if we can raise some money to get them through the job hunt they weren’t expecting. Please consider giving, and PLEASE spread the word. gofundme.com/support-our-lin…