#!/usr/bin/env bash echo "Test Probes: FILEHASH test" > /tmp/test_probes_filehash58.tmp cat < filehash58 1.0 5.8 2011-07-14T00:00:00-00:00 /tmp test_probes_filehash58.tmp MD5 /tmp test_probes_filehash58.tmp SHA-1 /tmp test_probes_filehash58.invalid MD5 /tmp test_probes_filehash58.invalid SHA-1 /tmp/test_probes_filehash58.tmp /tmp test_probes_filehash58.tmp MD5 `md5sum /tmp/test_probes_filehash58.tmp | awk '{print $1}'` /tmp test_probes_filehash58.tmp MD5 incorrect-md5 /tmp test_probes_filehash58.tmp MD5 SHA-1 `md5sum /tmp/test_probes_filehash58.tmp | awk '{print $1}'` `sha1sum /tmp/test_probes_filehash58.tmp | awk '{print $1}'` incorrect-md5 incorrect-sha1 incorrect-md5 `sha1sum /tmp/test_probes_filehash58.tmp | awk '{print $1}'` EOF