5 # original php3->phtml converter by Pavel Piankov <pashah@spb.sitek.net>
6 # modified by Tobias Ratschiller to allow any file extension
7 # part of the phpMyAdmin distribution <http://phpmyadmin.net/>
9 # 2001-07-07, lem9@users.sourceforge.net:
10 # - supports sub-directories
11 # - no more bak directory
15 echo "Usage: extchg.sh <extension to change from> <extension to change to>"
17 echo "Example: extchg.sh php3 php"
21 for i
in `find . -name "*.$1"`
24 sed -e 's/\.'$1'/\.'$2'/g' $i > `ls $i|sed -e 's/'$1'/'$2'/g'`