update mountall; add _screen.sh
[cmdllinux.git] / scripts / _cmpdir
blob17ac1a1343801aeaa79f72c78ea1852799fab591
1 #! /bin/bash
2 #--check file#dir1
3 [ -d "$1" ] || exit 1
4 DIR1=`pwd`
5 DIR2="$1"
7 find "$DIR1" -type f | \
8 while read FILE; do
9 if [ -e "$DIR2/${FILE#${DIR1}/}" ]; then
10 cmp "$FILE" "$DIR2/${FILE#${DIR1}/}" > /dev/null 2>&1 || echo "*$FILE"
12 done