- or download this
rename($_, lc($_)) foreach <*.HTM{,L}>; # yes, this is portable
- or download this
$op = shift or die "Usage: rename expr [files]\n";
chomp(@ARGV = <STDIN>) unless @ARGV;
...
die if $@;
rename($was, $_) unless $was eq $_;
}
- or download this
rename '$_ = lc' *.HTM *.HTML