add function file.grep
update function: file.grep

Add exception handling for cmd.run_all
Merge pull request #8749 from pyinx/patch-4

add function file.grep