Enhance $grep to accept arguments and complex patterns