I have a program that writes information to stdout and stderr, and I need to process the stderr with grep, leaving
stdout
stderr
grep
I try follow, find it work as well,
command > /dev/null 2>&1 | grep 'something'