With this InFile ...
Code:
"Hello", she said. "Nice to meet you!", he {thought aloud}.
... this
tr ...
Code:
tr -d "[:punct:]" <$InFile >$OutFile
... produced this OutFile ...
Code:
Hello she said Nice to meet you he thought aloud
The
tr means translate.
The
-d means delete.
The
[:punct:] identifies the character class of all punctuation marks.
There are other ways to accomplish the same purpose.
I like this one because (IMO) it is more readable than the others.
Daniel B. Martin