I have 1,000,000 files in some folders and subfolders. I want to rename them from lowercase to uppercase using shell commands. I don't want to modify the extension. only filename part.
I have found this one:
rename 's/^([^.]*)\.(.*)$/\U$1\E.$2/' *
but it is not recursive and only works on files in current folder.
Then I tried this one:
find . -depth -execdir rename 's/^([^.]*)\.(.*)$/\U$1\E.$2/' {} \;
But no files changed.
How can I use it recursively?
**
syntax in globbing.bash
(withglobstar
turned on) andzsh
does. – manatwork Jul 24 '13 at 10:37