Reputation: 65
I used:
rename 's/a-z/A-Z' *.txt
However, this command changes the register of the file extension as well.
Upvotes: 2
Views: 51
Reputation: 174706
Think you mean this,
rename 's/([a-z])(?=.*?\.txt$)/\U$1/g' *.txt