@shiflett If you have a dictionary file, you can search for these with(ri->n example) fgrep 'ri' dict.txt | fgrep -v "'" | sed "s/ri/n/" | xargs -I % egrep -w '^%$' dict.txt