[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: md5 without MD5 ("OpenBSD") =
On Sun, 2 Sep 2001, 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
Why not just pipe the output to cut/sed/awk/whatever?
md5 -s "OpenBSD" | cut -d' ' -f4
md5 -s "OpenBSD" | sed 's/.*= //'
md5 -s "OpenBSD" | awk '{print $4}'
/Andreas