I wrote a simple PHP shell script that parses files and displays a specific element.
It generates a lot of output. In different colors (bash), green for OK, yellow for warnings, red for errors, etc.
During development, I want to filter out some lines. For example, all lines containing red text.
Can I use a command grep(or another) for this ?
source
share