bash: How to get first and last dates of previous month
I had a task that i needed to calculate some data between the first and the last date of the previous month, bash is powerful and provides an easy way to do such calculations avoiding any pitfalls that come up when dealing with dates.