I hv script that will output a txt file report , the report content is as below, I would like the word "No error" is bolded so that this message is highlighted , can advise what can i do ? thx
Date : 2002-01-22
Error : No error
I hv script that will output a txt file report , the report content is as below, I would like the word "No error" is bolded so that this message is highlighted , can advise what can i do ? thx
Date : 2002-01-22
Error : No error
tput bold
echo "This"
tput sgr0 #Reset text attributes to normal without clear.
echo "This"
//Jadu
using escape sequences:
$ echo -e "\033[1mThis is a BOLD line\033[0m"
//Jadu
Once you have created the txt file report , you can BOLD the "No error " using,
sed s/No error/$(tput bold)No error$(tput sgr0)/ report.txt > temp
mv temp report.txt