I am working on an ancient UNIX whose grep lacks the -r/--recursive option.
I need to find an error that our application is causing, but I do not know which log file our application is writing errors to. However, I do know that the log file is somewhere in /opt. So I want to find FooErrorMessage under /opt in *.log. Here's what I tried:
find /opt | xargs grep FooErrorMessage
-- but this does not work, and I don't know where to specify that I just want *.log files in the command.