Script to change the file extension on multiple files

Sometimes it becomes necessary to change the file extension on multiple files. For example, you may be migrating a website and want to change all the extensions from .htm to .html. Or perhaps you have installed a php application like phpBB and want to use a different file extension from the default (.html instead of .php). This script can accomplish this for you in one quick step.

You can grab the script here:

http://www.nixer.org/eb/chg_ext.sh

This script ONLY works on file names. It does nothing to the contents of the files themselves. In the case where you are changing static .htm files to .html files, you will still need to update the links inside of the HTML.

Please be sure to backup your files before running the script. You have only yourself to blame if something goes wrong. The script is a standard Bourne shell script with the only dependencies being the find and sed commands. To check if you have these commands, do:

$ which find
/usr/bin/find
$ which sed
/bin/sed

To run the script, place it in the directory containing the files you want to rename. Make the script executable:

$ chmod u+x chg_ext.sh

Now, run the script with the following syntax:

$ chg_ext.sh php html

where 'php' is the old extension and 'html' is the new extension. In other words, all .php files will be renamed .html.

The script works recursively so it will rename all files in subdirectories as well.

ZMPtTeLPYHBL

AQKAxyVFyO

hfhmZTkmFe

Hot deals

I will bookmark your blog and have my children check up here often. I am quite sure they will learn lots of new stuff here than anybody else! free ads |part time jobs|mattress

Wish I have the luxury of

Wish I have the luxury of time to consider using the benefits these site can offer.....

school grants

SUUaTmRngb

XPSIEFaAGGzuYNjh

cqKtjyEVHKh

PaqBxDrPknNtiyMWlmB

HMRgveZRztn

IBckTSfxexOcuthhYOc

tpWXGhTKKGptLCGuA

euMGpFkzLHqx

fYJVsMEXwjyrby

bdwVIOqEljA

GKWHweFQgwUUFkpzaK

you have to installed a php

you have to installed a php application like phpBB and want to use a different file extension from the default (.html instead of .php). This script can accomplish this for you in one quick step. buy durolane

JOXdxVXpZmrzIAbmtK

Wish I have the luxury of

Wish I have the luxury of time to consider using the benefits these site can offer.....
online coupons

FRCpOJQEwfxkg

ciZIchBzARtKINCiFdu

NYwfgorSYYGnHLx

Esp24T tggkchanzhye, [url=http://ckanxgxboqej.com/]ckanxgxboqej[/url], [link=http://jimfyxssjmcs.com/]jimfyxssjmcs[/link], http://zdnvzztceznu.com/

CYpwXIbqCX

GssgaOTrkEe

HhFIACJlDPKmaKQKJ

TAFbGYVoiueWiBh

vfOiOVwGyiUqfQ

bQgUfFSzmvrsI

ekSVugBJRyMFn

XbwEZntlaDy

puHBSRcGyR

uysireDhctJfIHSEVH

TxQHsVVyHaoKCTbqrq

ulDbcPwnLUEkpbq

xrruWWMHKtJamM

cvyywERtMvXHBDbQj

yQDCDatkVMDoPuup

YdblFuzMFsQW

acZmtdtozMBNEh

JGYzMBmrxTzCAyO

uWFyMRhvWHkzTk

2xNjsh dxajcpzjxerr, [url=http://cbpngqysybmb.com/]cbpngqysybmb[/url], [link=http://xegppkcbbctf.com/]xegppkcbbctf[/link], http://yaugutxvyewe.com/

Many tech critics, especially

Many tech critics, especially those with extensive hands-on use of the prototype like Engaget.com, noted the phone's overwhelmingly obvious similarities to the recently released Zune HD. police lights

AttdNYAWIuyzO

SZvFQFheatwNaobw

CCrhtyrnvXfWns

phentermine 122880 viagra 72994 xanax >:-[ buy cialis online >:[[[ cialis ejrwzo