title: bash: echo something to right end of window (right aligned)
body: <p>I am looking for producing success/fail messages which are right aligned in bash. An example would be what apache2 produces on executing: <code>sudo /etc/init.d/apache2 reload</code> etc.  </p>
  
  <p>In above example, apache2 produces very nice and concise <code>[OK]</code> or <code>[fail]</code> message which are right aligned.</p>
  
  <p>Also, would love to know how to get the text red, in case, we are to produce a <code>[fail]</code> message.</p>