Files
oldlinux-files/Minix/2.0.0/wwwman/man1/tr.1.html
2024-02-19 00:21:39 -05:00

72 lines
1.2 KiB
HTML

<HTML>
<HEAD>
<TITLE>tr(1)</TITLE>
</HEAD>
<BODY>
<H1>tr(1)</H1>
<HR>
<PRE>
</PRE>
<H2>NAME</H2><PRE>
tr - translate character codes
</PRE>
<H2>SYNOPSIS</H2><PRE>
<STRONG>tr</STRONG> [<STRONG>-cds</STRONG>] [<EM>string1</EM>] [<EM>string2</EM>]
</PRE>
<H2>OPTIONS</H2><PRE>
<STRONG>-c</STRONG> Complement the set of characters in <EM>string1</EM>
<STRONG>-d</STRONG> Delete all characters specified in <EM>string1</EM>
<STRONG>-s</STRONG> Squeeze all runs of characters in <EM>string1</EM> to one character
</PRE>
<H2>EXAMPLES</H2><PRE>
<STRONG>tr</STRONG> <STRONG>'[A-Z]'</STRONG> <STRONG>'[a-z]'</STRONG> <STRONG>&lt;x</STRONG> <STRONG>&gt;y</STRONG>
# Convert upper case to lower case
<STRONG>tr</STRONG> <STRONG>-d</STRONG> <STRONG>'0123456789'</STRONG> <STRONG>&lt;f1</STRONG> <STRONG>&gt;f2</STRONG>
# Delete all digits from <EM>f1</EM>
</PRE>
<H2>DESCRIPTION</H2><PRE>
<EM>Tr</EM> performs simple character translation. When no flag is specified,
each character in <EM>string1</EM> is mapped onto the corresponding character in
<EM>string2</EM> .
</PRE>
</BODY>
</HTML>