> D> 2. Why doesn't md5(1) have a "check" option? Seems to me requiring a > D> manual inspection is error-prone at best, and makes scripting > D> unecessarily complicated. >
Would something like the attached patch be good? It adds a -c option for a string to check against. It prints "[failed]" if the string does not match the files md5 unless in -q mode. It also returns 2 to indicate md5 match failure for use in scripts.
md5-check.patch
Description: Binary data
_______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"