I am looking for producing success/fail messages which are right aligned in bash. An example would be what apache2 produces on executing: sudo /etc/init.d/apache2 reload etc.
In above example, apache2 produces very nice and concise [OK] or [fail] message which are right aligned.
Also, would love to know how to get the text red, in case, we are to produce a [fail] message.
(note : french locale ;-) )