Mercurial > hg > cc > azure
annotate workers/bin/_timedWhich.sh @ 18:9631fca89cc6
F2-related stuff, and new experiment
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Fri, 19 Oct 2018 14:25:19 +0000 |
parents | 2a2c1fb03c54 |
children | d4f186655bcc |
rev | line source |
---|---|
17
2a2c1fb03c54
first cut at http/https real trial, with month and year last-modified info too
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
1 #!/bin/bash |
18
9631fca89cc6
F2-related stuff, and new experiment
Henry S. Thompson <ht@markup.co.uk>
parents:
17
diff
changeset
|
2 egrep -o '("WARC-Target-URI":"https?:|"Last-Modified":"[^"]*")'|\ |
17
2a2c1fb03c54
first cut at http/https real trial, with month and year last-modified info too
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
3 egrep -o '(https?:|:".*"$)' |\ |
2a2c1fb03c54
first cut at http/https real trial, with month and year last-modified info too
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
4 tr '\012' \# | sed 's/:#:/ /g'|tr \# '\012' | tr -d \"|\ |
2a2c1fb03c54
first cut at http/https real trial, with month and year last-modified info too
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
5 sed 's/ [[:digit:]][[:digit:]]\?:[[:digit:]][[:digit:]]:[[:digit:]][[:digit:]] / /;s/\(https\? \)\(: \)\?[MTWFSa-z]..\.\?, \?/\1/;s/ \([-+][[:digit:]]\{4\}\|[[:upper:]]\{2,3\}\)$//;s/ [[:digit:]]\{1,2\} / /;s/\/[[:digit:]]\{1,2\}\/\([[:digit:]]\{4\}\)$/ \1/'|\ |
2a2c1fb03c54
first cut at http/https real trial, with month and year last-modified info too
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
6 awk '{c[$0]+=1} END {for (k in c) {print k, c[k]}}' |
2a2c1fb03c54
first cut at http/https real trial, with month and year last-modified info too
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
7 |