There were two categories of responses in this thread, and I have questions about both:
1) feherke suggested echo -e "\033[1mtest .................
--I tried this, and it works in the terminal, but not if I direct the output to a file. Is that to be expected?
--What is the origin of \033{1m....\033[0m; are there variations that would
cover underlining, color, etc.? If so, where would I find them?
2) Many responses involved "tput," but there are some basic things I don't understand. For example, exactly how are
bold=`tput smso`
offbold=`tput rmso` (or whatever)
entered? If I just type these and press return, of course I get a "command not found" response -- which isn't useful. Simply, I don't know how to enter something so that it won't be viewed as a command. Or are these, somehow, commands?
TIA
1) feherke suggested echo -e "\033[1mtest .................
--I tried this, and it works in the terminal, but not if I direct the output to a file. Is that to be expected?
--What is the origin of \033{1m....\033[0m; are there variations that would
cover underlining, color, etc.? If so, where would I find them?
2) Many responses involved "tput," but there are some basic things I don't understand. For example, exactly how are
bold=`tput smso`
offbold=`tput rmso` (or whatever)
entered? If I just type these and press return, of course I get a "command not found" response -- which isn't useful. Simply, I don't know how to enter something so that it won't be viewed as a command. Or are these, somehow, commands?
TIA