[SunHELP] Change upper case to lower case letter

sunhelp at sunhelp.org sunhelp at sunhelp.org
Fri Jun 1 08:08:02 CDT 2001


If you've got perl installed:

#!/usr/bin/perl
while (<@ARGV>)
{
  $x = $_;
  tr/A-Z/a-z/;
  system("mv","$x","$_");
}

Save it as "case.pl" and run:

$ case.pl *


===============================
Ed Mitchell (ed<-at->the7thbeer.com)
Finger for PGP public key
===============================
This boxen's uptime stats....
  6:06am  up 8 day(s), 20:13,  1 user,  load average: 0.00, 0.01, 0.02


On Fri, 1 Jun 2001, Trond Eirik Aune wrote:

> Hi
> 
> I have a directory structure with files and folder all in upper case letter. I want to change all this to lower case letter.
> Can someone please help me write a script that will make all these changes?
> 
> (Damn NT and upper/lower case changes)
> 
> Mvh,
> Trond E. Aune
> 




More information about the SunHELP mailing list