Changing File Names to Lowercase

To change the uppercase letters in a file name to lowercase (or vice versa), use chcase. It takes as arguments the files whose names it should change.

To change the file names of all of the files in the current directory to lowercase letters, type:

$ chcase * RET

Use the `−u' option to change file names to all uppercase letters.· To change file names of all of the files with a `.dos' extension in the `~/tmp' directory to all uppercase letters, type:

$ chcase −u ~/tmp/*.dos RET

By default, chcase does not rename directories; use the `−d' option to rename directories as well as other files. The `−r' option recursively descends into any subdirectories and renames those files, too. · To change all of the files and subdirectory names in the current directory to all lowercase letters,type:

$ chcase −d * RET

To change all of the files and subdirectory names in the current directory to all uppercase letters, and descend recursively into all subdirectories, type:

$ chcase −d −r −u * RET

To change all of the files in the current directory to all lowercase letters, and descend recursively into all subdirectories (but do not change any directory names), type:

chcase −r * RET

Posted on: 16/12/2009








0 Comments
If you want to leave a comment please Login or Register
How to backup your data using rsync......
Understanding autoconf......
The Basics of fdisk......
Accessing Memory Using DMA......
The fd Directory......