#!/bin/sh
function scandir() {
firstdir=$1
cd $firstdir
for filename in `ls $firstdir`;do
if [ -d $filename ];then
firstdir=`pwd`/$filename
cd $firstdir
scandir $firstdir
cd ..
else
sed -i 's/command.iserror(me,retcode/command.iserror(me,retcode/g' $filename
fi
done
}
scandir `pwd`
function scandir() {
firstdir=$1
cd $firstdir
for filename in `ls $firstdir`;do
if [ -d $filename ];then
firstdir=`pwd`/$filename
cd $firstdir
scandir $firstdir
cd ..
else
sed -i 's/command.iserror(me,retcode/command.iserror(me,retcode/g' $filename
fi
done
}
scandir `pwd`