4 ms·
Lots of lists on my personal site, even excluding the one non-handcrafted page. #!/usr/bin/awk -f BEGIN { while( (getline t < "tags.txt") > 0)
by wonger_ 3y ago
Lots of lists on my personal site, even excluding the one non-handcrafted page.
#!/usr/bin/awk -f
BEGIN {
while( (getline t < "tags.txt") > 0) tags[t] = 0
}
{
for (t in tags) tags[t] += gsub("<" t "[ |>]", "")
}
END {
for (t in tags) print tags[t], t
}
./count.awk $(find . -name '*.html') | sort -rh | head -n 10
534 li
290 a
215 p
149 br
132 span
99 ul
66 b
47 div
40 pre
37 meta