I am trying to convert a variable to lower case and strip a suffix at the same time. The variable contains a file name and I am stripping the extension:
for f in *.shp; do echo ${f%.*};done
To convert a variable to lowercase I know the command is,
${f,,}
But how do I convert ${f%.*} to lower case within the loop?

