2006-07-20 07:54:37 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Nico Schottelius
|
|
|
|
# Date: 13-May-2003
|
|
|
|
# Last Modified: 2004-09-06
|
|
|
|
# usage: show_calendar <date> [date]
|
|
|
|
# Format: DD.MM., DD.MM.YYYY
|
|
|
|
# add $CALDIR/files:
|
|
|
|
# -----------------------
|
|
|
|
# cat $CALDIR/test
|
|
|
|
# 01.09: auto ansehen..
|
|
|
|
# -----------------------
|
|
|
|
#
|
|
|
|
|
2010-07-24 15:49:25 +00:00
|
|
|
CALDIR=~/.calendar
|
2006-07-20 07:54:37 +00:00
|
|
|
|
|
|
|
if [ $# -lt 1 ]; then
|
|
|
|
echo `basename $0` 'day.month [day.month.year]'
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd $CALDIR
|
|
|
|
for file in *; do
|
|
|
|
for date in $@ TO.DO; do
|
2008-07-24 07:29:02 +00:00
|
|
|
#egrep --with-filename -A 2 -e "^${date}[:\.]" "$file"
|
2006-07-20 07:54:37 +00:00
|
|
|
egrep --with-filename -A 2 -e "^${date}:" "$file"
|
|
|
|
done
|
|
|
|
done
|