repo.or.cz
/
cmdllinux.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
update mountall; add _screen.sh
[cmdllinux.git]
/
scripts
/
_cmpdir
blob
17ac1a1343801aeaa79f72c78ea1852799fab591
1
#! /bin/bash
2
#--check file#dir1
3
[
-d
"
$1
"
]
||
exit
1
4
DIR1
=
`pwd`
5
DIR2
=
"
$1
"
6
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
"
11
fi
12
done