用反斜杠转义引号,或使用双引号来指定字符串.
echo 'Here goes your message with an apostrophe S like thi\'s'; echo "Here goes your message with an apostrophe S like thi's";