|
Posted by David Dorward on 06/06/05 00:16
Gaffer wrote:
> I KNOW I can change them. It's my bloody site and I can do as I wish. But
> HOW do I change all the pages (ie.: index.asp, menu.asp, links.asp,
> htmlnonsense.asp) so that the extension changes (ie.: index.htm, menu.htm,
> links.htm, htmlnonsense.htm). Do I have to open each page, click "save as"
> index.htm and do the same for each page, or can I change them all at once.
> I'm talking about the actually file, not the html code!!
Well, a bash script along the lines of:
for x in *.asp
do mv "$x" "`echo $x | sed s/\.asp/.html/`"
done
....will probably do the job. Macs come with bash, and you can download it
for Windows from http://www.cygwin.com/
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
[Back to original message]
|