recent birthdays script

shell prompt iconSince a very long time I have used conky to display things on my desktop. For getting birthday notifications I today share a small script called print_birthdays.sh, that outputs recent birthdays that were filtered from a text file with many birthday entries like

dd.mm.yyyy FIRSTNAME MIDDLENAME LASTNAME

by using awk. The output will be something like

~$ print_birthdays.sh
08.04. Dasy McMillan
> 10.04.1955 Dad (59)
13.04.1987 Anne (27)

Today’s birthdays are marked with an arrow and other birthdays within the specified range of days are displayed. The script will also check the birthday list for changes and sort the content by date if it was changed lately, so you can just add new entries at the bottom and the lines will (after a while) be in chronological order. Have fun with this.

About

Peter Pan. Kann fliegen mit Feenstaub.

Tagged with: , , ,
Posted in Linux, Technik
One comment on “recent birthdays script
  1. laclaro says:

    I’ve updated my script slightly to work even better.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Posts by topic…
…by month
Have a look at…


%d bloggers like this: