#!/bin/sh # This program is public domain. # Send feedback, patches etc. to moritz+src@example.com # and replace the domain by wzff dot de ANNUAL=${ANNUAL:-~/lib/annual} awk $(date "$@" +'-vm=%h -vy=%Y -vd=%d') ' $0 ~ /^#/ { next } ($2 == m || $2 == "*") && ($3 == d || $3 == "*") { print $0 ($1 != "*" ? " (" y - $1 " years ago)" : "") }' "$ANNUAL" # $Id: annual,v 1.3 2011/03/29 13:40:33 mw Exp $