Hi all,
I suggest tow things for this shell script. First :
$ fromdos <extchg.sh> extchg.sh.new $ mv extchg.sh.new extchg.sh
Second :
Change this line sed -e 's/'$1'/'$2'/g' $i > `ls $i|sed -e 's/'$1'/'$2'/g'` to this one, sed -e 's/.'$1'/.'$2'/g' $i > `ls $i|sed -e 's/'$1'/'$2'/g'`
Because, if you make a 'extchg.sh php3 php' and after a 'extchg.sh php php3', the actual version change all <?php tag to <?php3 (for example).
Armel. ................................................................ Webmaster PHPIndex http://www.phpindex.com webmaster@phpindex.com ................................................................