[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: md5 without MD5 ("OpenBSD")



On Mon, Sep 03, 2001 at 09:53:41AM +0200, Phil Pennock wrote:
> On 2001-09-02 at 13:51 -0700, Camille Davis wrote:
> > Anyone know how to get the md5 command to return JUST the md5 string, NOT
> > the other junk?
> >
> > $ md5 -s "OpenBSD"
> > MD5 ("OpenBSD") = 760be6e1c2192a5bf7c0df47cc5f71ca
> >
> > I just want
> > 760be6e1c2192a5bf7c0df47cc5f71ca
> 
> Several people have given solutions which use the fourth field.  This
> breaks if the filename has embedded whitespace.
> 
You know, I'm amazed so many people have contributions, but afaik no
one has posted the obvious:

echo -n "OpenBSD" |md5
cat "/some/file" |md5

Perhaps this sort of question would have been better asked in a
shellscript oriented forum rather than the OpenBSD miscellanea list?

Don't get me wrong, I have no problem with seeing people get help.
It's just that the misc@ list in particular is consuming a huge amount
of collective time around the world, and a lot of very talented people
have been forced to unsubscribe because of that. Compare the quality
of the list of several years ago with now. Think before you post, use
private mail if responding to something that didn't appear germane,
don't respond to trolls, don't respond to spam, use the archives, etc.

I thank those who no doubt did help Camille off list, and do apologize
for this contribution to the noise.

/Hugh