If you regularly receive unix commands that you need to copy-n-paste out of a Word document, then you should disable AutoFormat/AutoCorrect, because it is otherwise difficult to ensure that quote and dash characters aren't damaged.

But sometimes you get a document where the damage is already done. How do you fix these?

replace all

One way is to use the find-n-replace feature of your word processor to do a "replace all" on these characters:

HOWTO disable autocorrect

Here's how to fix this problem in various applications: