#!/bin/sh filename="$HOME/.memo" today=`date +%Y-%m-%d` if [ -f $filename ]; then while read -r line; do date=`echo "$line" | cut -f3` if [ "$today" == "$date" ]; then #echo "$line" | cut -f4 | mutt -s "Reminder from Memo" foo@example.com fi done < "$filename" fi