I have two files in a folder on my Ubuntu 16.04:
a1.dat
b1.DAT
I want to rename b1.DAT
to b1.dat
so I would have following files as a result in the folder:
a1.dat
b1.dat
I tried (unsuccessfully):
$ rename *.DAT *.dat
Bareword "b1" not allowed while "strict subs" in use at (user-supplied code).
Bareword "DAT" not allowed while "strict subs" in use at (user-supplied code).
and
$ find . -iname "*.DAT" -exec rename DAT dat '{}' \;
Bareword "DAT" not allowed while "strict subs" in use at (user-supplied code).
Bareword "DAT" not allowed while "strict subs" in use at (user-supplied code).
Searching for this resulted in no meaningful solution...