bash programming go through date by months