[CentralOH] dayspan: a piano 'fingering exercise' in shell

Eric Floehr eric at intellovations.com
Thu Jun 15 10:59:06 EDT 2017


Russ,

Can you provide some examples of use: input, output, etc. for various use
cases?

-Eric


On Wed, Jun 14, 2017 at 1:46 PM, R P Herrold <herrold at owlriver.com> wrote:

>
> I had need to edit a 'find' expression, to retain a
> potentially variable number of backups.  To figure out the
> maximum number of days a set of sequential or prior adjacent
> months might span, and so to save 'enough' regardless of Leap
> years, and shorter and longer intervals, I wrote a tool to see
> what the maximum dayspan might be for each of the twelve
> months.  It makes a difference depending on counting 'forward'
> or backward through the year, as to the month identified as
> yielding the longest span (there is not just one selection
> which always works)
>
> How might this be re-implemented in Python?
>
> https://github.com/herrold/tool-tips/blob/master/
> convenience/days_spanned.sh
>
> -- Russ herrold
> _______________________________________________
> CentralOH mailing list
> CentralOH at python.org
> https://mail.python.org/mailman/listinfo/centraloh
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/centraloh/attachments/20170615/549645f0/attachment.html>


More information about the CentralOH mailing list