This is the mail archive of the 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]
Other format: [Raw text]

RE: Is there a 'ping' in cygwin?

> -----Original Message-----
> From: 
> [] On Behalf Of Hughes, Bill
> Sent: Monday, October 20, 2003 10:05 AM
> To: ''
> Subject: RE: Is there a 'ping' in cygwin?
[- snip -]
> Now do I bother writing something to rename all .EXE to lower 
> case? I don't
> think so.
[- /snip -]

I already did for similar reasons.  It doesn't recurse directories and
it renames ALL files (not just .exe), but it does work.

[- perl script -]
# This script will take files names that are in
# capital letters and convert them to lower case
# letters.  I'm going to use the easy way.  Copy
# the file to a temp file, delete the original,
# then copy the temp file back to the original
# file name in lower case letters.

use File::Copy;

$PathToFiles = $ARGV[0];

@FileNameList = glob("*.*");
foreach $FileName (@FileNameList) {
	$FileNamelc = lc $FileName;
	print "$FileName renamed to $FileNamelc\n";
[- /perl script -]

Unsubscribe info:
Problem reports:

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