in reply to how to escape in shell

Usually, a \' is enough to escape it.

# echo can\'t can't

HTH