User Tools

Site Tools


restartable-sha256deep

This is an old revision of the document!


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}}
restartable-sha256deep.1503382889.txt.gz · Last modified: 2017/08/22 08:21 by baumi

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki