When trying to filter very long output from make for specific warnings or error messages, the first idea would be something like this:
$ make | grep -i 'warning: someone set up us the bomb'
The result is not fully satisfying, though. The output will not just contain the filter results from grep
but also stdout
and stderr
messages from other tools that are used in the make
target somewhere.
The question now is:
- Where does the other output come from?
- How to write the filter command that the output will only contain the filtered lines?