for link_name in `ls *.so`
do
src_file_size=`ls -l ${link_name}* | awk -F ' ' '{print $5}' | sed -e '/^$/d' | sort -n -r | sed -n '1,1p'`
src_file_name=`ls -l ${link_name}* | grep ${src_file_size} | awk -F ' ' '{print $NF}'`
if [[ ${src_file_name} != ${link_name} ]];then
for k in `ls ${link_name}*`
do
if [[ $k != ${src_file_name} ]];then
rm -rf $k
cp -f ${src_file_name} $k
fi
done
fi
done