case $# in 1) DEST="$1" SRC=`basename $DEST` ;; 2) DEST="$2" SRC="$1" ;; *) echo $0 [source] destination ;; esac cmp "$SRC" ../../$DEST