MKSHELL=rc DISTFILES=`{ls mkfile cf f} WEB=/lib/web/txtpunk/root/html/daily workday:QV: today tomorrow now = `{datefmt %s} later = `{hoc -e $now'+(60*60*24)'} today = `{datefmt %Y%m%d} tomorrow = `{datefmt -t $later %Y%m%d} B $today $tomorrow today:QV: today = `{datefmt %Y%m%d} touch $today tomorrow:QV: now = `{datefmt %s} later = `{hoc -e $now'+(60*60*24)'} tomorrow = `{datefmt -t $later %Y%m%d} touch $tomorrow plan:Q: today tomorrow now = `{datefmt %s} # TODO ; automatically run any non-checkbox, non-empty lines through f. later = `{hoc -e $now'+(60*60*24)'} today = `{datefmt %Y%m%d} tomorrow = `{datefmt -t $later %Y%m%d} { echo '['`{datefmt %Y-%m-%d}^']' cat $today if (test -s $tomorrow) { echo ; echo '['`{datefmt -t $later %Y-%m-%d}^']' cat $tomorrow } status='' } > $home/lib/plan mk archive:Q: now = `{datefmt %s} later = `{hoc -e $now'+(60*60*24)'} today = `{datefmt %Y%m%d} tomorrow = `{datefmt -t $later %Y%m%d} tfiles = `{ls | grep '^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]$' |\ grep -v '('$today'|'$tomorrow')'} for (i in $tfiles) { tdir=`{echo $i | sed -n 's/^([0-9][0-9][0-9][0-9])([0-9][0-9])([0-9][0-9])/\1\/\2/p'} mkdir -p $tdir mv $i $tdir } dist:QV: $DISTFILES cp $DISTFILES $WEB # troff -manhtml $MAN.1 | troff2html -t 'tw' > $WEB/tw.1.html