Greetings,
How do I convert the file names to lower case. I have a directory and the files in it which are in upper case, how do i convert all of them to lower case. Ofcourse except "mv UPPERCASE lowercase" since there are lots of files to convert and I do not want to keep typing the lowercase file name for each one of them. Thanks in advance.
Bye.
On Saturday 28 December 2002 12:24 am, Amish Munshi wrote:
How do I convert the file names to lower case.
For just the case conversions, use chcase, a perl script, available at http://www.blemished.net/chcase.html. For bulk file renaming in general, look intoKRENAME(needs KDE). Its an amazing product with zillions of functions.
HTH, -- Bhargav Bhatt, Department of Applied Physics and Applied Mathematics, Columbia University. -- http://www.columbia.edu/~bbb2004
On 28/12/02 10:54 +0530, Amish Munshi wrote:
How do I convert the file names to lower case. I have a directory and the files in it which are in upper case, how do i convert all of them to lower case. Ofcourse except "mv UPPERCASE lowercase" since there are lots of files to convert and I do not want to keep typing the lowercase file name for each one of them.
#!/bin/bash
for uppercase in `ls` do for lowercase in `ls $uppercase|tr [A-Z] [a-z]` do mv $uppercase $lowercase 2>/dev/null done done
Hope this helps.
--Rupessh