lcra and nsra, version 1.0.1 Rename filenames to lower case, and remove spaces from filenames. When copying files from DOS or Windows systems or unpacking archives created on those systems, you often find that all the filenames are in uppercase. Some Windows programs have a tendency to overwrite lowercase or mixed-case filenames with ones in all caps. This means you end up with an ugly mixture of capitalization in filenames. On a case-sensitive filesystem like Unix (or Cygwin in Windows), this is annoying as well as ugly. A further problem is that many Windows filenames have spaces in them, which breaks Unix shell tools. lcra fixes the capitalization problem. Go to the directory containing the files you want to rename and run 'lcra' - it will guess which need renaming to lowercase and rename them, verbosely printing what happens. (It renames files in the current directory and all subdirectories). The way it guesses what needs renaming is roughly that mixed-case filenames are left alone, as well as Unixy-looking names like COPYING and README. While the guessing is pretty good it cannot be infallible, so lcra will sometimes change Unix filenames that need to be in upper case. Don't run it in /usr/lib/perl5/, for example. You can make lcra get rid of first-letter capitalization (eg Setup.exe becomes setup.exe) by editing the constants at the top. Similarly, nsra changes spaces to underscores. It renames _all_ files with spaces in the name, but that's probably what you want. Actually, you don't have to use them on the current directory, you can do: % lcra filenames... % nsra filenames... The directory example/ contains some sample filenames to try the programs out on. Cd to this directory then run lcra and/or nsra. COPYING All the files are in the public domain. This means there are no copyright restrictions, you may do what you wish with them. Of course, giving credit would be appeciated (but not required). They are offered as-is with no warranty whatsoever. AUTHOR Please contact me with any suggestions or bug reports. Ed Avis These programs have a web page at .