Google-search – How to search escape words in Google or other engines

google-searchsearch-engine

Maybe this question is a bit silly, however I always fail to get the right result when I search Google for some particular words like $@( in bash) and other escape words. For instance, when I use bash $@ as the key words, the result contains no highlight signs like $@, which is useless for me;I have also tried bash "$@" or bash \$@, however there seems no improvement.

Can anyone give me some hints?

Best Answer

Search engines don't index the whole text. They toss most punctuation and index only the words that are left and where they were found using something called an inverted word index.

I think the reason you can't search for $@ is because it's just not in their index. They tossed it as punctuation. Consistent with that, notice that if you search for $@ alone, you get no matches.