You are right that [ and ] are special characters. Write them with \ or use fgrep . The latter is a simple string search:
fgrep "\$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']" ...
You still need to quote $ , though, since that is otherwise interpreted by bash and other shells.
source share