For the example, systemctl status weechat |grep Active
The output of systemd is green or red depending on status.
How to keep that when piping through grep (or other command like tail,...)?
There is --color, but it's not that.
.
For the example, systemctl status weechat |grep Active
The output of systemd is green or red depending on status.
How to keep that when piping through grep (or other command like tail,...)?
There is --color, but it's not that.
.
Use
scriptto keep color :