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
+ for each in $(ls -r Wiki/${base}.comment.<0000000001-9999999999>_<000-999>); do
author=$(grep -m1 '^author=' "$each" |cut -d= -f2-)
echo "<div class='comment'><h1>$author wrote:</h1><div class='wikitext'>"
tail -n+2 $each |_wiki
</div>
<div id="MAIN">
<div class="wiki"><div class="wikitext">
- <h1>$title</h1>
+ <h1 class="wikihead">$title</h1>
$(_wiki Wiki/"${info}${rev}")
</div></div>
</div>