On Wed, May 22, 2002 at 07:43:22PM +0200, petter wahlman wrote: > > If you want to change the filenames to lowercase in the current directory use for example a oneliner (bash) such as: > > > > for i in *; do mv $i `echo $i | tr [A-Z] [a-z]`; done > > > > If you want to spesify a filelisting change the * to `cat filelist.txt`, or use find, ls or any other tool to search for the files (with full path!) you want to change. > > > > To change your #include statements create a script (or a one-liner with at sweet regex) that goes through all the files and changes the filenames to lowercase. > Thanks, Christian. > Such a sollution would work, if only changing the case in the filesystem > three was the problem. It is'nt. It requires me to get access to, check > out the file from the source revision control system, and then manually > (well, not easilly done with a script) change the incorrect include > statement. Again, you can have CVS do the changes automaticaly for you. > Linux should IMO be as adaptible and flexible as possible, and _forcing_ > filesystem case is wrong. Errr. Standard answer: code it and submit :-) > > That is, do not run the one-liner if you have 2 or more files such as (file.txt and File.txt) because one of them will (depends on the mv command or alias (mv -i ???)) be destroyed in the process. > > > Jupp, I know. I think no one would do an automatic system that do that, without having checks to prevent that. []s -- Rodrigo Barbosa - rodrigob at tisbrasil.com.br TIS - Belo Horizonte, MG, Brazil "Quis custodiet ipsos custodes?" - http://www.tisbrasil.com.br/ Brainbench Certified -> Transcript ID #3332104 -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/