Here are a few small programs that execute a shell command and save the output to a file for visualization purposes. I personally use these programs to search for patterns in the Linux Kernel, such as mutex_lock. In order to search for other patterns, I manually adjusted the patterns.