From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Curley To: John Mamer Cc: gnu-win32@cygnus.com Subject: Re: upper/lower case question Date: Mon, 13 Oct 1997 19:00:00 -0000 Message-id: <3.0.2.32.19971013172034.00907da0@mailhost.wyoming.com> References: X-SW-Source: 1997-10/msg00272.html At 09:25 PM 10/12/97 -0700, John Mamer wrote: >Hi! > Another newbie question: I have a bunch of files, >originally written under UNIX, that have arrived at my >gnu-win32 directory via DOS (am running on Windows NT >4.0-sp3). The problem is that in the process the file names >have all been translated to upper case. I tried the obvious >thing: > >cp FILE.C file.c > >but it didn't work. I wound up reading each file into >emacs, and then copying it into a new directory using the >lower case name. This worked, but it seems, somehow, >inelegant. > >I know that this is the result of a DOS/UNIX >incompatibility, and not strictly speaking gnu-win32's >fault, but is there a neater way to do this? (I anticipate >having to do this in the future). >thanks Quick & dirty (from BASH): mv FILE.C foo.c; mv foo.c file.c You can probably put together a quick alias to do that in one command. A little more development would be a perl script to do the same for the entire directory or tree. -- C^2 Looking for fine software and/or web pages? http://web.idirect.com/~ccurley - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help".