if [ -f A/file -a -f B/file ];then echo file;fi