I have been trying to manipulate a file using tr
and have a task on removing all punctuation in one file and moving the contents into another.
cat file1 | tr --delete [:punct:] | cp file1 file2
When this command is used I'm returned with a preview of the file with no punctuation but when I look at file2
, all the punctuation is still there.
Is there something I'm doing wrong?