title: How to match only odd occurrences of a character at the end of the line using grep
body: <p>For example, I'm matching odd occurrences of 'a'.
  So "helloaaa" should match while "helloaaaa" should not match.</p>
  
  <p>I've also tried "(aa)*a$" with and without -E option on bash.</p>