Tuesday, January 22, 2008
ANSI Escape Sequences for writing text in "BOLD" and "UNDERLINE" . A more about ANSI escape sequences can be found here
$ echo -e "\033[1mThis is a BOLD line\033[0m"
This is a BOLD line
echo "This" #BOLD
tput sgr0 #Reset text attributes to normal without clear.
echo "This" #NORMAL
$ echo -e "\033[4mThis is a underlined line.\033[0m"
This is a underlined line.
© Jadu Saikia www.UNIXCL.com