Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'make a shell script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
make a shell script
Authored by: jimr on Jul 10, '02 05:39:52PM
here is a sample shell scipt that can help you to get the md5 checksum for any file. maybe as a "homework" assignment you can make it check the result against the md5 verification file that comes with many source packages....
(like adding cat $1.md5 if you have the files named like that...)


#!/bin/sh
#######################################
# find the md5 checksum of some file by name
# syntax: get_md5
# by jrc 7/2002
#######################################
mypgm=$1
if [ "$1" = "" ]; then
echo "No defaults"
echo "--------------------------------------"
echo "syntax: get_md5 "
echo "--------------------------------------"

else
openssl md5 $1
fi



[ Reply to This | # ]