From: alex Date: Sat, 10 Sep 2022 10:25:59 +0000 (+0000) Subject: List most accessed articles X-Git-Tag: 20240214-emacs~226^2~19 X-Git-Url: https://xn--ix-yja.es/gitweb/?a=commitdiff_plain;h=e6359fc748e69f2b6893ec16c613d15e58936d98;p=alex.git List most accessed articles --- diff --git a/README.md b/README.md index 1405435..03e640c 100644 --- a/README.md +++ b/README.md @@ -133,4 +133,8 @@ $ ./fix.py ``` $ find content/ -name '*.gmi' -execdir sed -i 's|http[^ ]*watch?v=|https://farside.link/invidious/watch?v=|g' {} \; -``` \ No newline at end of file +``` + +``` +$ { cat alex.corcoles.net_access.log alex.corcoles.net_access.log.1 ; zcat alex.corcoles.net_access.log.*gz ; } | cut -d \" -f 2 | grep GET | cut -d " " -f 2 | grep -E -e '^/[0-9]{4}/[0-9]{2}/.+' | grep -v '/feed/$' | sort | uniq -c | sort -n +```