<s>
tr	B-Application
is	O
a	O
command	B-Application
in	O
Unix	B-Application
,	O
Plan	B-Operating_System
9	I-Operating_System
,	O
Inferno	B-Operating_System
,	O
and	O
Unix-like	B-Operating_System
operating	I-Operating_System
systems	I-Operating_System
.	O
</s>
<s>
maps	O
all	O
characters	O
a	O
to	O
j	O
,	O
b	O
to	O
k	O
,	O
c	B-Language
to	O
m	O
,	O
and	O
d	O
to	O
n	O
.	O
</s>
<s>
In	O
POSIX-compliant	O
versions	O
of	O
tr	B-Application
,	O
the	O
set	O
represented	O
by	O
a	O
character	O
range	O
depends	O
on	O
the	O
locale	B-Device
's	I-Device
collating	O
order	O
,	O
so	O
it	O
is	O
safer	O
to	O
avoid	O
character	O
ranges	O
in	O
scripts	O
that	O
might	O
be	O
executed	O
in	O
a	O
locale	B-Device
different	O
from	O
that	O
in	O
which	O
they	O
were	O
written	O
.	O
</s>
<s>
The	O
s	O
flag	O
causes	O
tr	B-Application
to	O
compress	O
sequences	O
of	O
identical	O
adjacent	O
characters	O
in	O
its	O
output	O
to	O
a	O
single	O
token	O
.	O
</s>
<s>
The	O
d	O
flag	O
causes	O
tr	B-Application
to	O
delete	O
all	O
tokens	O
of	O
the	O
specified	O
set	O
of	O
characters	O
from	O
its	O
input	O
.	O
</s>
<s>
The	O
following	O
command	B-Application
removes	O
carriage	O
return	O
characters	O
.	O
</s>
<s>
The	O
c	B-Language
flag	O
indicates	O
the	O
complement	O
of	O
the	O
first	O
set	O
of	O
characters	O
.	O
</s>
<s>
The	O
original	O
version	O
of	O
tr	B-Application
was	O
written	O
by	O
Douglas	O
McIlroy	O
and	O
was	O
introduced	O
in	O
Version	B-Operating_System
4	I-Operating_System
Unix	I-Operating_System
.	O
</s>
<s>
The	O
version	O
of	O
tr	B-Application
bundled	O
in	O
GNU	B-Application
coreutils	I-Application
was	O
written	O
by	O
Jim	O
Meyering	O
.	O
</s>
<s>
The	O
command	B-Application
is	O
available	O
as	O
a	O
separate	O
package	O
for	O
Microsoft	B-Application
Windows	I-Application
as	O
part	O
of	O
the	O
UnxUtils	B-Application
collection	O
of	O
native	B-Language
Win32	B-Library
ports	O
of	O
common	O
GNU	B-Operating_System
Unix-like	B-Operating_System
utilities	O
.	O
</s>
<s>
It	O
is	O
also	O
available	O
in	O
the	O
OS-9	B-Operating_System
shell	O
.	O
</s>
<s>
A	O
tr	B-Application
command	B-Application
is	O
also	O
part	O
of	O
ASCII	O
's	O
MSX-DOS2	O
Tools	O
for	O
MSX-DOS	B-Operating_System
version	O
2	O
.	O
</s>
<s>
The	O
command	B-Application
has	O
also	O
been	O
ported	O
to	O
the	O
IBM	B-Application
i	I-Application
operating	O
system	O
.	O
</s>
<s>
Most	O
versions	O
of	O
tr	B-Application
,	O
including	O
GNU	B-Operating_System
tr	B-Application
and	O
classic	O
Unix	B-Application
tr	B-Application
,	O
operate	O
on	O
single-byte	O
characters	O
and	O
are	O
not	O
Unicode	O
compliant	O
.	O
</s>
<s>
An	O
exception	O
is	O
the	O
Heirloom	B-Device
Toolchest	I-Device
implementation	O
,	O
which	O
provides	O
basic	O
Unicode	O
support	O
.	O
</s>
<s>
Ruby	B-Language
and	O
Perl	B-Language
also	O
have	O
an	O
internal	O
tr	B-Application
operator	O
,	O
which	O
operates	O
analogously	O
.	O
</s>
<s>
Tcl	B-Operating_System
's	O
string	O
map	O
command	B-Application
is	O
more	O
general	O
in	O
that	O
it	O
maps	O
strings	O
to	O
strings	O
while	O
tr	B-Application
maps	O
characters	O
to	O
characters	O
.	O
</s>
