How to put an underline under my output text using shell or awk ?
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
No comments:
Post a Comment