rendered paste body DIR1="/mnt/sda/Pictures/Foto2005/"
DIR2="/mnt/sda/Pictures/Foto2006/"
find $DIR1 -printf "%f\n" > filenames.txt
find $DIR2 -printf "%f\n" >> filenames.txt
NUMB=`sort filenames.txt |uniq -d|wc -l`
echo ""
echo "There are $NUMB files with the same filename!"
echo ""
SEE=`sort filenames.txt |uniq -d| less`
OPTIONS="Yes No"
select opt in $OPTIONS; do
if [ "$opt" = "Yes" ]; then
echo $SEE
echo ""
echo "done"
exit
elif [ "$opt" = "No" ]; then
echo ""
echo "exiting"
exit
else
clear
echo ""
echo "bad option"
exit
fi
done