From: ccurley AT wyoming DOT com (Charles Curley) Subject: Re: upper/lower case question 13 Oct 1997 23:55:05 -0700 Message-ID: <3.0.2.32.19971013172034.00907da0.cygnus.gnu-win32@mailhost.wyoming.com> References: ccurley AT wyoming DOT com (Charles Curley) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: John Mamer Cc: gnu-win32 AT cygnus DOT com 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 AT cygnus DOT com" with one line of text: "help".