Printing coloured lines

I want to print "Hello,How are you" in green colour using printf. How to do so?

this works in AIX...

printf "\033[1;32mHello,How are you?\033[m"

echo -e "\033[1;32mHello,How are you?\033[m" also gives the same output.

Is there any advantage or disadvantage of printing lines with echo with respect to printf?

printf comes with lot more options like formatting the o/p etc etc...
depending upon use we use either echo or printf...

could you suggest me a good tutorial on the internet for printing coloured output using printf or echo...

---------- Post updated at 03:28 PM ---------- Previous update was at 03:09 PM ----------

How to print "hi how are you" in green coloured underlined text?

Plz help....

---------- Post updated at 03:29 PM ---------- Previous update was at 03:28 PM ----------

How to print "hi how are you" in green coloured underlined text?

Plz help....

---------- Post updated at 03:31 PM ---------- Previous update was at 03:29 PM ----------

How to print "hi how are you" in green coloured underlined text?

Plz help....

---------- Post updated at 03:31 PM ---------- Previous update was at 03:31 PM ----------

How to print "hi how are you" in green coloured underlined text?

Plz help....

this will do...

printf "`tput smul`\033[1;32mHello,How are you?\033[m`tput rmul`"