Enclose the $ in square brackets [ .. ], that is, specify the special character as a character class. For example,
grep ‘[$]foo’ file.txt
Your email address will not be published. Required fields are marked with *.