https://tech.iprock.com/archives/26159
Doing Date Math on the Command Line, Parts I & II | Linux Journal