Mail Archives: cygwin/1997/10/13/23:55:05
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".
- Raw text -