You were so close :-(
$ echo "This is an input string" | digest -v -a md5
md5 35e1332bf506d35c7c9f1c2b0cb39d4e
Brian
Morten Gulbrandsen wrote:
Please how can I with bash read a string for hashing with digest, from stdin?
bash-3.00$ digest -v -a md5 "This is an input string."
digest: can not open input file This is an input string.
I did observe that the redirect operators are not displayed in the preview, so
I attach my example file.
------------------------------------------------------------------------
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org
--
Brian Ruthven
Solaris Revenue Product Engineering
Sun Microsystems UK
Sparc House, Guillemont Park, Camberley, GU17 9QG
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org