We a unix script with gives status of monitoring activity. Eg.
sh monitoring_activity.sh
O/p -
RUNNING| TASK1
RUNNING| TASK2
SUCCESS| TASK3
FAILED | TASK4
Since the number of records are huge ~200, we need to color the output of the script as
- Record with RUNNING Status in YELLOW
- Record with SUCCESS Status in GREEN
- Record with FAILED Status in RED
Is there any way to achieve the same.