view workers/bin/_timedWhich.sh @ 68:1f04bce6ead7 default tip

use basefile instead of transferfile, and remove cleanup: belt and braces wrt lossage of sac_schemes.py in 15% of 1000_k3, this as used in a_2
author Henry S. Thompson <ht@markup.co.uk>
date Thu, 04 Jun 2020 20:44:44 +0000
parents d4f186655bcc
children
line wrap: on
line source

#!/bin/bash
egrep -o '("WARC-Target-URI":"https?:|"Last-Modified":"[^"]*")'|\
 egrep -o '(https?:|:".*"$)' |\
 tr '\012' \# | sed 's/:#:/ /g'|tr \# '\012' | tr -d \"|\
sed ';s/gmt//ig;s/ [[:digit:]][[:digit:]]\?:[[:digit:]][[:digit:]]:[[:digit:]][[:digit:]]\(\.[[:digit:]]*\)\?\b//;s/^\(https\? \)\(: \)/\1/;s/ [MTWFSa-z]..\.\?, \?/ /;s/\( [[:upper:]][[:alnum:]]\{1,3\}\)\{1,2\}$//;s/ [-+][[:digit:]]\{4\}\b//;s/ [[:digit:]]\{1,2\} / /;s/ [[:upper:]][[:alnum:]]*\/[[:upper:]][[:alnum:]]*$//;s/ \+$//'|\
awk '{c[$0]+=1} END {for (k in c) {print k, c[k]}}'