Re: OT: Wildcard renaming of files
csj@mindgate.net 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
Somebody's already mentioned mmv. You could also have taken a leap of
faith and tried 'rename', though the syntax is different to that of DOS,
involving Perl (often regular expressions):
rename 's/\.html$/.htm/' *.html
--
Colin Watson [cjw44@flatline.org.uk]
Reply to: