News for hackers. Stuff that matters.
Re:Writing HTML by Hand by wonger_ on Wednesday September 20, 2023 @11:14PM (#37592822)

    #!/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
Lots of lists on my personal site, even excluding the one large generated page

There are no comments on this comment yet.