Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to find snippets of code in a bunch of velocity files using Spotlight (specifically pages that contain a <html> tag. Spotlight's missing pages that contain that tag that I know are there. Is there a way to escape characters in Spotlight? What are some good alternative search engines for Macs?

I saw this article - - but it doesn't say anything about special characters, like periods or tags.

share|improve this question

1 Answer 1

If you don't mind using the terminal then you could perform a grep search


grep --recursive "foo" ~/Desktop

This will provide you with a list of files containing the regex "foo".

This will only search in the Desktop folder and any subfolders. Additionally you can use the --line-number option to also get the number of the line which has been matched.

If you just want to find files by filename you could also use the "find" utility.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.