Let's party
Where november was the month of moving, december was the month of party's. Today I will combine these events in giving a house-warming/new-year party. After that (hopefully) more time will be available for some good old hacking. As a reminder for myself to fix the damned end-year-bug here a shell script which shows my calendar, created with this nice vim script in a year/month/day.cal format.
dir="$HOME/diary"
nrofmonths=2
year=`date +%Y`
month=`date +%m| sed -e 's/^0//g'`
day=`date +%e`
for ((i=$month; i <= (month+nrofmonths-1); i++)); do
if [[ -d "$dir/$year/$i" ]]; then
for ((j=1; j <= 31; j++)); do
if [ "$i" -ne "$month" ] || [ "$j" -ge "$day" ];
then
bestand="$dir/$year/$i/$j.cal"
if [ -e $bestand ]; then
size=`/bin/ls -l $bestand | /bin/awk ' print $5 '`
if [ $size -gt 0 ]; then
echo -n "* `date -d "$i/$j" +%a\ %d\ %b` : "
sed -e "1!s/^/ /g" "$dir/$year/$i/$j.cal"
fi
fi
fi
done
fi
done
Happy 2005 anyone!
[Permalink] -- Filed under: [linux] [web]
Posted by jochem on 31st December 2004, last update on 31st December 2004

