Linux rename files to uppercase

bash, linux, ubuntu

Solution

for f in * ; do mv -- "$f" "$(tr [:lower:] [:upper:] <<< "$f")" ; done

Problem

I have large number of files in the format `x00000.jpg`, `X00000.jpg` and `xx00000.jpg`. How can I rename these files so they are all uppercase, ignoring the numeric part of the name?

Original source