old_IFS=$IFS
IFS=$'\n'

for i in `cat rename_pair.txt`
do
specise=`echo ${i}|awk '{print $1}'`
genome=`echo ${i}|awk '{print $2}'`
if [ -f ../specise_CpG_density_crop/${genome}.crop.png ]; then
cp ../specise_CpG_density_crop/${genome}.crop.png ./${specise}.crop.png
fi

done

IFS=$old_IFS
