Underline

i want to print underline under a text using shell or awk.can any body help me regarding this problem?
i hav tried with
echo -e -n "\033[4m
but its not working.
i aslo wana know the awk command for underline
actually i wana to put underline under a certain field
e.g
awk 'Begin {FS;}{print $1" "$2" " $4}'
like expected output is
123 456 12
122 567 13
211 087 14
311 987 15
like the avove
Thank you
regards,
Pankaj.

Pankaj,
See if this would work for you:

BU=`tput smul`
EU=`tput rmul`
echo "${BU}All underline${EU}"

It may be dependent on termcap/terminfo.

The command is any command that sends the correct escape sequence to the screen. The sequence doesn't change.

Shell:

printf "\e[4m%s\e[0m\n" TESTING

AWK:

printf "\e[4m%s\e[0m\n", "TESTING"

If your terminal isn't standard, it may not support underlining, or may require a different sequence. These days, such terminals are rare, but you may be able to get the sequence with tput.. Read the man pages for tput and terminfo and/or termcap.