e.g. vs ex.

e.g.

noun
  • An example. 

adv
  • "for example" or "for the sake of an example": used to introduce an illustrative example or short list of examples. 

ex.

How often have the words e.g. and ex. occurred in a corpus of books? (source: Google Ngram Viewer )