1 2 3 4 5 6 7 8 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