Hi Jim,
Jim Meyering schrieb:
> But it's even easier to convert openssl's format
> into one that is recognized.  Filter it through this:
> 
>     sed 's/(/ (/;s/\(= [0-9a-f]*\)$/ \1/'
> 
> E.g.,
> 
>     $ touch f; openssl md5 f
>     MD5(f)= d41d8cd98f00b204e9800998ecf8427e
>     $ openssl md5 f | sed 's/(/ (/;s/\(= [0-9a-f]*\)$/ \1/'
>     MD5 (f) = d41d8cd98f00b204e9800998ecf8427e
> 
sure, I know that; but in the sense of user-friendly tools I (and most
likely many other users too) would really appreciate if md5sum / sha1sum
could support more of these other crappy formats as input ...
I've summarized what I've found so far about the different tools and
their output formats:
http://www.gknw.net/phpbb/viewtopic.php?t=570
personally md5sum / sha1sum are my preferred tools, but since I come
every now and then over other formats I've now hacked my Perl script
which automatically detects those crappy formats I get from other places
where I have no control about what I get.

thanks, Gün.




Reply via email to