A little mroe details would not ahve helped.
A bot command, shell command?
What you may be looking for is the grep shell command.
CHange tot eh scripts dir
grep "<STRING>" ./8
<STRING> is a regular expression, though you can use basic matching, if you escape your string correctly.