#!/bin/sh # $Id: md5,v 1.1 2006/03/03 22:28:58 friedman Exp $ # Emulation of freebsd `md5', which is essentially just # the RSA reference implementation. case $# in 0 ) md5sum | sed -e 's/ .*//' ;; * ) md5sum ${1+"$@"} \ | sed -e 's/^\([^ ]*\)[ ]*\(.*\)/MD5 (\2) = \1/' ; esac # eof