title: bash script - output in color using printf
body: <p>hi guys I'm working on a project but i wanted to display the output text in color.</p>
  
  <pre><code>#!/bin/bash
  printf "%s" "this is in red";
  printf "%s" "this is in default color";
  exit 0
  </code></pre>
  
  <p>this is the example and how would I display "this is in red" in red and leave the rest of the output text on default color?</p>
  
  <p>i looked at some examples but they were all for echo and it did not really worked for printf or do i really have to use echo to make it work?</p>
  
  <p>any help will be great. thanks</p>