Ubuntu rename files uppercase to lowercase and viceversa

rename command in Ubuntu renames multiple files/directories at a time.

To rename a file(s)/directory with upper case name to lower case use following command:

$ rename 'y/A-Z/a-z/' NAME

It will rename file with NAME to name

To rename a file(s)/directory with lower case name to cace case use following command:

$ rename 'y/a-z/A-Z/' name 

It will rename file with name to NAME

Rename will only rename file/directory name, it won’t change any content in it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s