version 1.2, 1996/06/26 05:41:50 |
version 1.3, 1998/10/30 00:24:40 |
|
|
.Pp |
.Pp |
The |
The |
.Nm tr |
.Nm tr |
utility exits 0 on success, and >0 if an error occurs. |
utility exits 0 on success or >0 if an error occurred. |
.Sh EXAMPLES |
.Sh EXAMPLES |
The following examples are shown as given to the shell: |
The following examples are shown as given to the shell: |
.sp |
.sp |
|
|
``tr [a-z] [A-Z]'' will work as it will map the ``['' character in |
``tr [a-z] [A-Z]'' will work as it will map the ``['' character in |
.Ar string1 |
.Ar string1 |
to the ``['' character in |
to the ``['' character in |
.Ar string2. |
.Ar string2 . |
However, if the shell script is deleting or squeezing characters as in |
However, if the shell script is deleting or squeezing characters as in |
the command ``tr -d [a-z]'', the characters ``['' and ``]'' will be |
the command ``tr -d [a-z]'', the characters ``['' and ``]'' will be |
included in the deletion or compression list which would not have happened |
included in the deletion or compression list which would not have happened |