bday

view bday.1 @ 10:6d25afd91132

adjusted manpage
author meillo@marmaro.de
date Wed, 19 Dec 2007 01:26:56 +0100
parents 5326c222cd4e
children d18a3b2b76bd
line source
1 .TH bday 1
2 .SH NAME
3 bday \- inform about upcoming birthdays and other events
7 .SH SYNOPSIS
8 .BR bday\ [ -W
9 .IR defwarn ]
13 .SH DESCRIPTION
14 The
15 .B bday
16 command reads standard input which gives a list of birthdays and events (see section
17 .B FILE FORMAT
18 for details). It produces a list of events which are coming up within the next few weeks.
22 .SH OPTIONS
24 .TP
25 .BI -W\ warn
26 Warn
27 .I warn
28 days in advance, for entries that have no
29 .B w
30 flag (see
31 .BR FILE\ FORMAT ).
32 If this switch is not specified, it defaults to 14 days.
36 .SH FILE FORMAT
38 Each line beginning with a hash sign,
39 .RB ` # ',
40 is a comment and will be ignored.
42 Any other line specifies the name of a person or event, followed by an equals sign and
43 a date and finally some extra options. The date has to be in ISO 8601 date format (YYYY-MM-DD).
44 The extra options are:
45 .TP
46 .B bd
47 This line is a birthday (the default). The year, if given, should be when the person was born. A line designated as a
48 birthday will produce output like
49 .B Erin has a birthday in 3 days' time
50 or
51 .BR "Jemima is 3 in 2 weeks' time" .
52 .TP
53 .B ann
54 This line is an anniversary. The year, if given, should be the year in which the thing happened, producing output like
55 .B Pen exploded 3 years ago tomorrow
56 given a line such as
57 .BR "Pen exploded=1993-09-12 ann" .
58 .TP
59 .B ev
60 This line is an event of some sort. If a year is given, the text will be displayed in that year only; otherwise, it will
61 be displayed every year. The remaining time is simply appended to the text; for instance, the input
62 .B Easter=1996-04-07 ev
63 would give rise to the text
64 .BR "Easter in 1 week's time" .
65 .TP
66 .BI w n
67 Warn
68 .I n
69 days in advance of the date, rather than the default of 14 days or the number given with the
70 .B -W
71 flag.
72 .TP
73 .BI for\ days
74 The event lasts for
75 .B days
76 days.
77 .TP
78 .BI to\ date
79 The event lasts until
80 .IR date ,
81 which should be in the same format as for the date of the event.
85 .SH EXAMPLE
87 Joe Blow=1974-04-25
91 .SH SEE ALSO
93 .BR birthday (1),\ cal (1)
97 .SH BUGS
98 The program cannot warn more than one year in advance of anything.
102 .SH CREDITS
104 This Program is heavily based on birthday. But without all non essential stuff. Nevertheless, much thanks for birthday, Andy!
108 .SH AUTHOR
109 markus schnalke <meillo@marmaro.de> and Andy Mortimer <andy.mortimer@zetnet.co.uk>