From 3a33fa3c7921c69efbc9beaaa922452ba2eaf271 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 15 May 2023 18:28:45 +0200 Subject: Makefile fix --- sdep-0.2/sdep.1 | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 sdep-0.2/sdep.1 (limited to 'sdep-0.2/sdep.1') diff --git a/sdep-0.2/sdep.1 b/sdep-0.2/sdep.1 new file mode 100644 index 0000000..302c45d --- /dev/null +++ b/sdep-0.2/sdep.1 @@ -0,0 +1,94 @@ +.Dd May 13, 2021 +.Dt SDEP 1 +.Os +.Sh NAME +.Nm sdep +.Nd a simple "date+event" line parser + +.Sh SYNOPSIS +.Nm +.Op Fl dv +.Op Ar +format +.Op Fl f Op Ar date +.Op Fl t Op Ar date +.Op Fl w Ar format +.Op Fl s Ar string + +.Sh DESCRIPTION +.Nm +reads lines of the form + +.Dl Ar "date text" + +from stdin and writes to stdout those lines such that +.Ar date +is between the dates specified by the +.Fl f +and +.Fl t +options, both defaulting to the current minute. +The dates should correspond to a unique minute in time. The format for +.Ar date +can be specified with the same syntax as for +.Xr date 1 . + +The options are as follows: +.Bl -tag -width Ds +.It Fl d +print the default date format and exit. +.It Fl f Op Ar date +initial date for the range (default: current minute). If +.Ar date +is not specified there will be no lower bound for the dates. +.It Fl s Ar string +change the string that separates the date from the text in the output +lines (deafult: "\t"). +.It Fl t Op Ar date +final date for the range (default: current minute). If +.Ar date +is not specified then there will be no upper bound for the dates. +.It Fl v +print version information and exit. +.It Fl w Ar format +change the format in which the date is written in the output lines. + +.Sh EXAMPLES +If +.Ar events.txt +contains lines formatted as +.Ar "date text" +then + +.Dl sdep -f