How to Use Grep Combined with Standard Output From Other Commands

Grep is often most powerful when examining the output of other shell commands. This example searches the Linux processes from the ps command for apache. Most sysadmins will use this technique at least once a week.

Example Output – all processes with the name apache in them