This ( ${1,,}
) is called the "Parameter Extension", available in bash version 4+. Here it is used to change the case of the string stored in the variable, in this case the first argument to the script.
Some examples: Lowercase conversion .
x='HellO'
echo ${x}
HellO
echo ${x,,}
hello
Convert $x
to uppercase .
echo ${x^^}
HELLO
In invert case:
x='Hey there'
echo ${x~~}
hEY THERE
source
share