This question already has an answer here:
I a trying to grep for certain string after issuing the
grpck -n ALL command so when trying
grpck -n ALL | grep -i format, for example, I still see the whole output and not just the lines containing the
I know I could direct the output to a file and use grep on that file but it has to be an easier way.
The grpck is just an example as I have noticed other commands that don't support grep.