X-Git-Url: http://git.plutz.net/?p=busy;a=blobdiff_plain;f=templates%2FWiki_show.page;fp=templates%2FWiki_show.page;h=87e848f805e9d7b588240d1e5c415f3c031dd682;hp=0000000000000000000000000000000000000000;hb=f485895094cd72318b46f39689c3ba954eb37411;hpb=904730d1782749bfac15b0344fe5782433f3099b diff --git a/templates/Wiki_show.page b/templates/Wiki_show.page new file mode 100755 index 0000000..87e848f --- /dev/null +++ b/templates/Wiki_show.page @@ -0,0 +1,80 @@ +#!/bin/zsh + +list_comments() { + base="$1" + + stat -c '' Wiki/${base}.comment.<0000000001-9999999999>_<000-999> \ + && for each in $(ls -c Wiki/${base}.comment.<0000000001-9999999999>_<000-999>); do + author=$(grep -m1 '^author=' "$each" |cut -d= -f2-) + echo "
$author wrote: