repo.or.cz
/
tor-metrics-tasks.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update criteria for partial/full IPv6 support.
[tor-metrics-tasks.git]
/
task-2714
/
list-consensus-hsdirs.awk
blob
343c5e7eb91c949452bade2fe79dcbbf2011857d
1
2
BEGIN
{
3
OFS
=
":"
4
idDigest=
"<oops>"
5
}
6
7
$
1
==
"r"
{
8
idDigest=$
3
9
}
10
11
$
1
==
"s"
{
12
isHSDir=
0
13
for
(
i =
NF
;
i
>
=
1
; --
i
) {
14
if
(
$i ==
"HSDir"
) {
15
isHSDir=
1
16
}
17
}
18
19
if
(
isHSDir
!=
0
) {
20
print
idDigest
21
}
22
23
idDigest=
"<oops>"
24
}
25