home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d7xx
/
d747
/
aush.lha
/
AUSH
/
ExtraCmds.lha
/
englishdocs
/
tr.doc
< prev
next >
Wrap
Text File
|
1992-09-04
|
1KB
|
46 lines
NAME
tr - translate characters
SYNOPSIS
tr [ -c ] [ -d ] [ -s ] [ string1 [ string2 ] ]
DESCRIPTION
tr copies the standard input to the standard output with substitution
or deletion of selected characters. Input characters found in string1
mapped into the corresponding characters of string2 (or deleted if
string2 is shorter than string1).
-c Complements string1 by the caracters between space (32)
and tilda (126).
-d Deletes all input characters in string1.
-s Squeezes all strings of repeated output characters that
are in string2 to single characters.
The following abbreviation conventions may be used to introduce
ranges of characters or repeated characters into the strings:
[a-z] Stands for the string of characters whose ASCII codes run
from character a to character z, inclusive.
[a*n] Stands for n repetitions of a. If the first digit of n is
0, n is considered octal; otherwise, n is taken to be
decimal.
The escape character \ followed by 1, 2, or 3 octal digits stands for
the character whose ASCII code is given by those digits.
RETURN CODES
0 if all went well
1 in case of bad argument (fatal)
CHANGES FROM UNIX
n in [a*n] expressions cannot be 0 nor missing
\ cannot be used to remove special meaning of characters [, ], etc...
AUTHOR
Denis GOUNELLE
Last modified 04-Sep-92