#!/usr/bin/env bash echo "Test Probes: FILEHASH test" > /tmp/test_probes_filehash.tmp cat < filehash 1.0 5.4 2008-03-31T00:00:00-00:00 /tmp test_probes_filehash.tmp /tmp test_probes_filehash.invalid /tmp test_probes_filehash.tmp `md5sum /tmp/test_probes_filehash.tmp | awk '{print $1}'` `sha1sum /tmp/test_probes_filehash.tmp | awk '{print $1}'` /tmp test_probes_filehash.tmp incorrect-md5 incorrect-sha1 /tmp test_probes_filehash.tmp incorrect-md5 `sha1sum /tmp/test_probes_filehash.tmp | awk '{print $1}'` EOF