Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: HTML to SHTML to Accomodate SSI's

by blakem (Monsignor)
on Oct 11, 2002 at 10:58 UTC ( #204463=note: print w/replies, xml ) Need Help??


in reply to HTML to SHTML to Accomodate SSI's

If you're on unix and have the standard find and rename utilities installed, this should work for you.
% cd YourDocRoot % find . -name '*.html' -exec rename .html .shtml '{}' \;
Though you should test it in a temporary directory first.

Update: Here is a faster version using xargs

% find . -name '*.html' -print0 | xargs -0 rename .html .shtml

-Blake

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://204463]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (1)
As of 2019-08-21 05:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?