01 / 07
What tr could not do
tr swapped characters one at a time, which is why it could not do this.
change the word error into ERRORHand tr the words error and ERROR and it makes a character by character pairing: e to E, r to R, r to R, o to O, r to R. It never treats them as words.
The tool that swaps text for text is sed, short for stream editor.