for Text1 in `cat uniq1`
do
for Text2 in `cat uniq2`
do
if [ "$Text1" = "$Text2" ]
then
echo $Text1 >> thesame
fi
done
done
for Text1 in `cat uniq1`
do
for Text2 in `cat uniq2`
do
if [ "$Text1" = "$Text2" ]
then
echo $Text1 >> thesame
fi
done
done