I am building a menu script for viewing packages and deamons and printers and all..
I know how to collor text to red or green.
But I get my results from status and put it in a array.
How can I change a result that is standing in a array to build collor around it.
For example
STATE_XCFA[1] can be UP or DOWN
If it is UP I want it to be green and if it is DOWN i want it to be red.
Example so you see where I'm getting at.
Echo "STATUS: ${STATE_XCFA[1]} | STATE: ${STATE_XCFA[2]} | NODE: ${STATE_XCFA[4]}|\n"