I'm searching for a while now if theres a special format-argument for printf or echo. I always see this kind of output when i start my ubuntu.
My goal is to print a text like this:
Setting up locals [DONE]
Starting simulation [DONE]
Receiving Data [FAIL]
Retry operation [OK]
The information in brackets should always be aligned on the right border of the terminal and colored.
Can someone give me a hint, how i can arrange that?
Thank you and BR