I have a program that writes information to stdout and stderr, and I need to process the stderr with grep, leaving
stdout
stderr
grep
If you are using Bash, then use:
command >/dev/null |& grep "something"
http://www.gnu.org/software/bash/manual/bashref.html#Pipelines