dotfiles/scripts/prefix/bin/task-add-birthdays.sh

35 lines
720 B
Bash
Raw Normal View History

2017-08-21 11:56:07 +02:00
# Ariane 1984 03 07
# Clémence 1984 03 05
# Cécilia 1988 07 09
# David 1988 11 08
# Glenn 1988 06 14
# Grégoire 1988 05 07
# Idéfix 2011 09 19
# Isa 1988 01 04
# Laurent 1989 04 14
# Léo 1990 10 18
# Manu 1979 04 28
# Marcel 1933 07 14
# Martin 1988 03 01
# Mman 1958 01 13
# Nicole 1954 03 23
# Olivia 1988 07 07
# Ppa 1957 03 10
# Samuel 1988 07 20
# Sergiu 1988 09 17
# Thibault 1987 12 18
# Thomas 1988 09 14
if [[ $# -ne 4 ]]
then
echo "Usage: $0 name year month day"
exit
fi
NAME=$1
DATEY=$2
DATEM=$3
DATED=$4
echo task add rc.dateformat:M-D +celebrate due:$DATEM-$DATED recur:yearly wait:due-1w until:due+2d "Anniversaire $NAME ($DATEY-$DATEM-$DATED)"