Outil de recherche des subscriptions au pages de WikiTeki.
authorProgfou <jean-christophe.andre@auf.org>
Wed, 9 Sep 2015 19:24:04 +0000 (15:24 -0400)
committerProgfou <jean-christophe.andre@auf.org>
Wed, 9 Sep 2015 19:24:04 +0000 (15:24 -0400)
moinmoin/wikiteki-subscribed_pages [new file with mode: 0644]

diff --git a/moinmoin/wikiteki-subscribed_pages b/moinmoin/wikiteki-subscribed_pages
new file mode 100644 (file)
index 0000000..b8845f0
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+BASEDIR="/var/lib/moinmoin"
+WIKI="wikiteki"
+
+cd "$BASEDIR/$WIKI/data/user/"
+for f in *
+do
+  awk -v f="$f" -F= '
+/^name=/ { n=$2 }
+/^email=/ { e=$2 }
+/^subscribed_pages.*=/ { sp=$2 }
+END { if (sp!="") print "\033[1;36m"n"\033[m <"e"> (\033[1m"f"\033[m)\n  "sp }
+' "$f"
+done