This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: How to avoid GNU make case sensitivity?


    Sergey> #!/bin/sh
    Sergey> for i in *; do
    Sergey>       new=`echo $i|tr [A-Z] [a-z]`;
    Sergey>       mv $i $new
    Sergey> done

Or, using 4NT, in the topmost directory, where I want to "downcase"
everything in that directory or below:

for /R . %%f in (*) lower %f

where the batch file lower.cmd contains the line

ren %1 %@lower[%1]

a. This could all be done in one line.
b. I don't know if I need the double %%, but it doesn't hurt.

Richard Stanton


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]