Help for this page

Select Code to Download


  1. or download this
    # perl rename
    rename 's/(?:\.html){2,}$/.html/' *.html
    
  2. or download this
    # unix rename
    rename .html.html .html *.html
    
  3. or download this
    # perl oneliner
    perl -e '-f && ($a = $_) =~ s/(?:\.html){2,}$/.html/ && -e $new ? warn
    + $_ : rename $_, $new for @ARGV' *.html