>>> "J.C. Roberts" 1-Jun-06 06:58 >>> : > Sure, you can edit the above rather easily to produce the correct format > for BSD md5/cksum but why should we be doing that all of the time.
Don't edit it manually, use a one-line sed, awk or perl script. > Would it be worthwhile to add a format switch (maybe "-f") to cksum so > we can handle different file formats? > > $ cksum -f openssl -c ossl.md5 > $ cksum -f md5sum -c md5sum.md5 > > Is there some unstated reasoning why we don't support the other formats? Yes. Each tool should do one thing, and do it well. cksum does. Having multiple different formats in the program, particularly those that can be generated from each other by simple sed scripts, is insane. Sorry. Tom (If you really want this, you could write a shell script that does exactly that - even taking your suggested -f option.)