Help for this page

Select Code to Download


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