From 94ea7a8cd41b5b0cebf2606f4319ca5050e80520 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 5 Jul 2020 21:03:38 -0400 Subject: Add some new stuff --- crc32 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 crc32 (limited to 'crc32') diff --git a/crc32 b/crc32 new file mode 100755 index 0000000..1adfa3b --- /dev/null +++ b/crc32 @@ -0,0 +1,9 @@ +#!/bin/sh + +# Horribly inefficient way to calculate crc32 of a file. + +Z=/tmp/crc32hack.$$.$RANDOM.zip +rm -f $Z +zip -q $Z "$1" +zipinfo -v $Z | grep CRC | sed 's,.* ,,' +rm -f $Z -- cgit v1.2.3