From 82bcfe3f25b1f0c08c93fd35497019b546e24ce2 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sat, 8 May 2021 19:19:41 +0200 Subject: First commit, v0.1 --- sdep.1 | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 sdep.1 (limited to 'sdep.1') diff --git a/sdep.1 b/sdep.1 new file mode 100644 index 0000000..8cbdd24 --- /dev/null +++ b/sdep.1 @@ -0,0 +1,106 @@ +.TH SDEP 1 sdep\-VERSION + +.SH NAME +sdep \- a simple "date+event" line parser + +.SH SYNOPSIS +.B sdep +.RB [ \-dv ] +.IR "[+format]" +.RB [ \-f +.IR "[date]" ] +.RB [ \-t +.IR "[date]" ] +.RB [ \-w +.IR format ] +.RB [ \-s +.IR string ] + +.SH DESCRIPTION +.B sdep +reads lines of the form + +.IR "date text" + +from stdin and writes to stdout those lines such that +.IR date +is between the two dates specified by the +.IR \-f +and +.IR \-t +options, both of which default to the current minute. +The dates should correspond to a unique minute in time. The format for +.IR date +can be specified with the same syntax as for +.IR date (1). + +.SH OPTIONS + +.TP +.B \-d +print the default date format and exit. + +.TP +.BI \-f " [date]" +initial date for the range (default: current minute). If +.I date +is not specified then there will be no lower bound for the dates. + +.TP +.BI \-s " string" +change the string that separates the date from the text in the output +lines (deafult: "\t"). + +.TP +.BI \-t " [date]" +final date for the range (default: current minute). If +.I date +is not specified then there will be no upper bound for the dates. + +.TP +.B \-v +print version information and exit. + +.TP +.BI \-w " format" +change the format in which the date is written in the output lines. + +.SH EXAMPLES +If +.I events.txt +contains lines formatted as +.I "date text" +then + +sdep -f + +.SH SOURCE CODE +Source code is available at https://github.com/sebastianotronto/sdep + +.SH SEE ALSO +.IR date (1), +.IR strftime (3), +.IR strptime (3) -- cgit v1.3