From e6359fc748e69f2b6893ec16c613d15e58936d98 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 10 Sep 2022 10:25:59 +0000 Subject: [PATCH] List most accessed articles --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 +``` -- 2.47.3