Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. tr is a command
in Unix-like operating systems. It is an abbreviation of translate or
transliterate, indicating its operation of replacing or removing
specific characters in its input data set. The utility reads a byte
stream from its standard input and writes the result to the standard
output. As arguments, it takes two sets of characters, and replaces
occurrences of the characters in the first set with the corresponding
elements from the second set. In POSIX-compliant versions of tr, the set
represented by a character range depends on the locale's collating
order, so it is safer to avoid character ranges in scripts that might be
executed in a locale different from that in which they were written.