Change most occurences of grep to grep -F so that . doesn't match any
character.