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
add some info to README.md
[cmdllinux.git]
/
scripts
/
_chkfile
blob
06ceb6b714b36b7550ff8269c42003a13b3a4471
1
#! /bin/bash
2
#*#_check_if_exists_file
3
#check if files found in current dir and subdirs exists on destination dir and subdirs
4
[ !
-d
"
$1
"
] &&
exit
1
5
6
find
-type
f
-printf
"%f
\n
"
| \
7
while
read
file
;
do
8
if
[ !
-z
"$(find "
$1
" -type f -name "
$file
")"
];
then
9
echo
"
$file
"
10
fi
11
done