Changed grep to shell