Armel FAUVEAU a écrit :
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,
your second point was in this patch, can you do it and close the patch?
I don't have the fromdos command, what is it's goal?
http://sourceforge.net/tracker/index.php?func=detail&aid=444789&gro…
Marc