Unix Shell - use md5sum in script

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > September 2006 > use md5sum in script





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author use md5sum in script
jimmy.dillies@gmail.com

2006-09-30, 7:28 pm

Hello,
I would like to use md5sum in a script to compute the hash of
a STRING ! (not a file)
Usually, the command is :
> md5sum

mystring
ctrl D
ctrl D
> myhash454544

thanks

Stephane CHAZELAS

2006-09-30, 7:28 pm

2006-09-30, 14:17(-07), jimmy.dillies@gmail.com:[vbcol=seagreen]
> Hello,
> I would like to use md5sum in a script to compute the hash of
> a STRING ! (not a file)
> Usually, the command is :
> mystring
> ctrl D
> ctrl D

STRING=mystring
printf %s "$STRING" | md5sum

--
Stéphane
jimmy.dillies@gmail.com

2006-09-30, 7:28 pm

Un grand merci !

Stephane CHAZELAS wrote:
> 2006-09-30, 14:17(-07), jimmy.dillies@gmail.com:
>=20
> STRING=3Dmystring
> printf %s "$STRING" | md5sum
>=20
> --=20
> St=E9phane


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com