Tweaking grep for symbol functionality