On Sat, Nov 11, 2000 at 05:18:19AM +0800, [EMAIL PROTECTED] wrote: > I have a bunch of files I want to rename from .html to .htm. Is there I way to > rename them all at once? > > I remember from my DOS days a command like "ren" (or is it "rename"?) that > would do the trick. Something like: > > ren *.html *.htm > > What's the Linux equivalent of this trick? mv only renames files explicitly. > Or > is there something in the man page I skipped?
rename 's/\.htm$/.html/' * -- CueCat decoder .signature by Larry Wall: #!/usr/bin/perl -n printf "Serial: %s Type: %s Code: %s\n", map { tr/a-zA-Z0-9+-/ -_/; $_ = unpack 'u', chr(32 + length()*3/4) . $_; s/\0+$//; $_ ^= "C" x length; } /\.([^.]+)/g;