bin/142814: add beginning and end offset options to md5(1)
mi at aldan.algebra.com
Thu Jan 14 04:50:04 UTC 2010
>Synopsis: add beginning and end offset options to md5(1)
>Arrival-Date: Thu Jan 14 04:50:03 UTC 2010
>Originator: Mikhail T.
>Release: FreeBSD 7.2-STABLE amd64
Virtual Estates, Inc. http://sybpipe.com/
When copying a huge file over a slow link, I wanted to check,
if the already downloaded part is correct by computing the
digests on both sides. Doing so from command line is rather
hard right now, and requires the use of split(1) on both ends,
which is not always feasible due to file-sizes.
If md5(1) already had the begin and end options, I could've
simply used them to process only part of the initial portions
of the file on each machine.
The patch -- against HEAD -- can be found at
It also corrects the utility to fail with an exit-code specified
by sysexits(3), rather than with an arbitrary 1. Also, asking for
help (with the -h option) causes it to print the usage message
and then exit with 0.
More information about the freebsd-bugs