Blog IndexPosts by TagHome

Remembering Birthdays

Posted <2017-02-19 Sun 18:10> by Aaron S. Jackson.

Remembering birthdays without Facebook is a bit tricky and was recently reminded of this over the past couple of weeks. I store my contacts in an org file (Emacs org-mode) on my home server, so I wrote a short script which runs at 1AM each day from Cron:

#!/usr/local/bin/bash

d=$(date +%d/%m)
people=$(grep $d Contacts.org)

if [ -n "$people" ]; then
    echo "$people" | \
        awk -F'|' '{ print $2 }' | \
        mail -s "birthdays" someone@blah.bluh
fi

Wanting to leave a comment?

Comments and feedback are welcome by email (aaron@nospam-aaronsplace.co.uk).

Related posts:

Tags: hacks

Blog IndexPosts by TagHome

Copyright 2007-2024 Aaron S. Jackson (compiled: Mon 30 Sep 12:34:18 BST 2024)