]> xn--ix-yja.es Git - alex.git/commitdiff
List most accessed articles
authoralex <alex@pdp7.net>
Sat, 10 Sep 2022 10:25:59 +0000 (10:25 +0000)
committeralex <alex@pdp7.net>
Sat, 10 Sep 2022 10:25:59 +0000 (10:25 +0000)
README.md

index 14054351e2cfd987fcbe87a0297da77cfdcd593c..03e640c35e408c8f05ce48263a14d5a9e4ae73da 100644 (file)
--- 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
+```