give some color to a word on echo output

Hi

Supposed this text output:

How can I show $HOSTNAME in other color than blank? :slight_smile:

KSH on AIX

Hello,

You can change colour in ksh. Kindly refer below link.

Change colour codes

Try this

echo " ******* RBAC en `tput smso` $HOSTNAME `tput rmso`*********"

Nice hari.. thanks!

Hi iga3725,

   Just Refer this link. You will find lot of options and ways to do it.

Bash Prompt HOWTO: ANSI Escape Sequences: Colours and Cursor Movement