wblock said:Yes, but it doesn't have the -c option. There ought to be an easier way to do this, but all that comes to mind is
% sha1 -q -s "testing" | sed 's%\(..\)%\1:%g'
% sha1 /path/to/file | diff -u /path/to/file.sha -
NAME
shasum - Print or Check SHA Checksums
SYNOPSIS
Usage: shasum [OPTION] [FILE]...
or: [B]shasum [OPTION] --check [FILE][/B]
Print or check SHA checksums.
With no FILE, or when FILE is -, read standard input.
-a, --algorithm 1 (default), 224, 256, 384, 512
-b, --binary read files in binary mode (default on DOS/Windows)
[B]-c, --check check SHA sums against given list[/B]
gsad said:I use [cmd=]sha1sum -c[/cmd] in Ubuntu. What is its equivalent in FreeBSD?
anomie said:Recent, related thread on this very topic (just with a different digest).