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

R P Herrold herrold at owlriver.com
Wed Jun 14 13:46:01 EDT 2017


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


More information about the CentralOH mailing list