Grepping the output of a script or program in a linux terminal is very straightforward. Run the script or program and pipe the output to grep, leaving the file designation empty.
myprog -h | grep "Usage"
The vertical bar indicates a piped output to a different program -- in this case, grep. The example above will return all lines which contain the substring "Usage".





