Skip to main content
edited tags
Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 266
Source Link
lfc4lyf
  • 21
  • 2
  • 5

Bold a text in Bash

I have a sample script here I want to bold the word BOLD in the text and send through email. Tried several ways but not seems to working.

BODY="Hello. I want to BOLD this" { echo "From: [email protected]" echo "To: [email protected]" echo "Subject: Texting" echo "X-Mailer: htmlmail" $VERSION echo "Mime-Version: 1.0" echo "Content-Type: text/html; charset=US-ASCII" print "<html><FONT COLOR=BLACK FACE="Geneva,Arial"SIZE=8><body>${BODY} </body>" print "<html><FONT COLOR=BLACK FACE="Geneva,Arial"SIZE=10> ${BODY} </html>" } | /usr/sbin/sendmail -t