Add hack script.
authorCarl Hetherington <cth@carlh.net>
Mon, 10 Apr 2017 08:38:42 +0000 (09:38 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 19 Apr 2017 22:04:32 +0000 (23:04 +0100)
hacks/poor_mans_digest [new file with mode: 0644]

diff --git a/hacks/poor_mans_digest b/hacks/poor_mans_digest
new file mode 100644 (file)
index 0000000..843a28f
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+head -c 1000000 "$1" > /tmp/$$.a
+tail -c 1000000 "$1" > /tmp/$$.b
+cat /tmp/$$.a /tmp/$$.b | md5sum