Gcc
From Attie's Wiki
(Difference between revisions)
(Created page with "==Highlight the output of gcc== * warnings will be highlighted yellow * errors will be highlighted red <source lang="bash"> make 2>&1 | sed -re 's/^([^:]+:[0-9]+:[0-9]+: warn...") |
Revision as of 12:12, 9 April 2014
Highlight the output of gcc
- warnings will be highlighted yellow
- errors will be highlighted red
make 2>&1 | sed -re 's/^([^:]+:[0-9]+:[0-9]+: warning: .+)$/\x1B[93m&\x1B[m/g' -e 's/^([^:]+:[0-9]+:[0-9]+: error: .+)$/\x1B[91m&\x1B[m/g'