#12: Find all words that end in...

Given a list of words in a text file, one word per line (such as, /usr/share/dict/words on OS X) there should be a quick way to find all words that end in a substring.

Example:
Find all words that end in "me"
assume
consume
presume
...

Think you've got a solution? Help 92049143cabb7ba896d7c06e19906303_small yliu out by posting your solution

Hacker News | To find words that end in "me," try:

http://news.ycombinator.com/item?id=248563 - found by 92049143cabb7ba896d7c06e19906303_small yliu on February 11, 2009, 09:08 AM UTC

"To find words that end in "me," try: egrep "^.{3,3}me$" /usr/share/dict/words The 3,3 means 3 characters minimum (anything less is invalid) and 3 maximum. So increase that second number to get more words."