view workers/bin/count1.sh @ 46:7a4e49689935

finally got logging sorted
author Henry S. Thompson <ht@markup.co.uk>
date Mon, 03 Dec 2018 21:10:02 +0000
parents 36b5d379909a
children
line wrap: on
line source

#!/bin/bash
echo "# $(date) > $ID.$1"
jq '.Envelope|.["WARC-Header-Metadata"]["WARC-Target-URI"]'|cut -f 1 -d ':'|awk '{c[$1]+=1} END {for (k in c) {print k, c[k]}}'
echo "# $(date) < $ID.$1"