How to lowercase all letters of a string in Bash
In this tutorial, we will learn how to lowercase all letters of a string in Bash.
Lowercase the string
To lowercase the string, we can use the double commas ,,
in Bash.
Here is an example, that converts the UPPERCASE string 'BMW'
to lowercase:
car='BMW'
lowercase=${car,,}
echo $lowercase
Output:
"bmw"