I am trying to get last n months first and last date given a specific date. Let's say i have a date as today. so for the given date my last date will be today's date and first date will be 1st of the month, for previous month the first date will be 1 and last date will be 31 and so on.
also saw this post but this only helps with month and not the dates. Using `date` command to get previous, current and next month
is there a way we can do this in bash?