#!/bin/bash # blogjob by Joe Galaxy # the simpliest blog engine ever # bjregen: regenerate blog dir BDIR="$HOME/blogjob" HEAD="$BDIR/head.tmpl" CONT="$BDIR/cont.tmpl" FOOT="$BDIR/foot.tmpl" cat $HEAD > $BDIR/index.html awk '{print}' `ls -r $BDIR/.post.*` >> $BDIR/index.html cat $FOOT >> $BDIR/index.html