Bash 4+:
for f in *; do
[ -f "$f" ] || continue
u="${f^^}"
[ "$f" = "$u" ] || mv -- "$f" "$u"
doneThis uppercases the whole filename, including the extension, for non-hidden files in the current directory.
To include hidden files too:
shopt -s dotglob nullglob
for f in *; do
[ -f "$f" ] || continue
u="${f^^}"
[ "$f" = "$u" ] || mv -- "$f" "$u"
doneCaveat: if two files would map to the same uppercase name, e.g. foo and FOO, the later mv may overwrite. Use mv -n -- instead of mv -- to avoid overwriting.