scripts/find_missing_files.sh

9 lines
244 B
Bash
Raw Normal View History

2024-02-05 10:02:13 +01:00
#!/bin/bash
# first argument : where files may be missing
# second argument : where files may be
while read f;
do
test -z "$(find "$2" -not -iregex ".*$1.*" -name $(basename "$f"))" && echo "Missing $f in $2";
done < <(find "$1" -type f);