#!/bin/sh
file1="litevirt-api-server.py"
file2="urlhandler.py"
cd litevirt-api
a=`sed -n '/urlhandler./p' $file1`
cd LitevirtAPI
num=0
for i in $a
do
tmp=`echo $i |grep urlhandle`
if [ "$tmp" ]
then
b=${tmp##*.}
c=${b%%\'*}
((totalnum=$totalnum+1))
d=`sed -n '/'"$c"'/p' $file2`
if [ "$d" ]
then
((num=$num+1))
echo $c "is find"
else
echo $c " <-----------------------is not find"
fi
fi
done
echo "total num" $totalnum "find " $num
file1="litevirt-api-server.py"
file2="urlhandler.py"
cd litevirt-api
a=`sed -n '/urlhandler./p' $file1`
cd LitevirtAPI
num=0
for i in $a
do
tmp=`echo $i |grep urlhandle`
if [ "$tmp" ]
then
b=${tmp##*.}
c=${b%%\'*}
((totalnum=$totalnum+1))
d=`sed -n '/'"$c"'/p' $file2`
if [ "$d" ]
then
((num=$num+1))
echo $c "is find"
else
echo $c " <-----------------------is not find"
fi
fi
done
echo "total num" $totalnum "find " $num