list2form : gestion des erreurs et des petits fichiers (merci cgi.py…)
[progfou.git] / moinmoin / wikiteki-subscribed_pages
CommitLineData
ec8c6e8d
P
1#!/bin/sh
2BASEDIR="/var/lib/moinmoin"
3WIKI="wikiteki"
4
5cd "$BASEDIR/$WIKI/data/user/"
6for f in *
7do
8 awk -v f="$f" -F= '
9/^name=/ { n=$2 }
10/^email=/ { e=$2 }
11/^subscribed_pages.*=/ { sp=$2 }
12END { if (sp!="") print "\033[1;36m"n"\033[m <"e"> (\033[1m"f"\033[m)\n "sp }
13' "$f"
14done