Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: HTML to SHTML to Accomodate SSI's

by blakem (Monsignor)
on Oct 11, 2002 at 10:58 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://204463]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2024-04-19 06:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found