title: How to use bash to get the last day of each month for the current year without using if else or switch or while loop?
body: <p>As we know that each year have the following max day in each month as follows:</p>
  
  <pre><code>Jan - 31 days
  Feb - 28 days / 29 days (leap year)
  Mar - 31 days
  Apr - 30 days
  May - 31 days
  Jun - 30 days
  Jul - 31 days
  Aug - 31 days
  Sep - 30 days
  Oct - 31 days
  Nov - 30 days
  Dec - 31 days
  </code></pre>
  
  <p>How to I get bash to return the value (last day of each month) for the current year without using <code>if else</code> or <code>switch</code> or <code>while</code> loop?</p>