~~META:
date created = 2017-06-25 09:00
&date modified = 2017-06-25 09:00
~~
====== Restartable sha256deep ======
===== Create checksums =====
find . -type f > /tmp/filelist
while read file; do
if ! fgrep "$file" incomplete.sha256; then
echo "$file"
sha256sum "$file" >> incomplete.sha256
fi
done < /tmp/filelist
===== Verify checksums =====
find . -type f > /tmp/filelist
while read file; do
if ! fgrep "$file" incomplete.check; then
echo "$file"
c=$(mktemp)
grep "$file" complete.sha256 > $c
sha256sum -c $c >> incomplete.check
rm $c
fi
done < filelist
{{tag>kb linux sha256sum}}