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 >
Text File  |  1992-09-04  |  1KB  |  46 lines

  1. NAME
  2.     tr - translate characters
  3.  
  4. SYNOPSIS
  5.     tr [ -c ] [ -d ] [ -s ] [ string1 [ string2 ] ]
  6.  
  7. DESCRIPTION
  8.     tr copies the standard input to the standard output with substitution
  9.     or deletion of selected characters. Input characters found in string1
  10.     mapped into the corresponding characters of string2 (or deleted if
  11.     string2 is shorter than string1).
  12.  
  13.     -c    Complements string1 by the caracters between space (32)
  14.         and tilda (126).
  15.  
  16.     -d    Deletes all input characters in string1.
  17.  
  18.     -s    Squeezes all strings of repeated output characters that
  19.         are in string2 to single characters.
  20.  
  21.     The following abbreviation conventions may be used to introduce
  22.     ranges of characters or repeated characters into the strings:
  23.  
  24.     [a-z]    Stands for the string of characters whose ASCII codes run
  25.         from character a to character z, inclusive.
  26.  
  27.     [a*n]    Stands for n repetitions of a.    If the first digit of n is
  28.         0, n is considered octal; otherwise, n is taken to be
  29.         decimal.
  30.  
  31.     The escape character \ followed by 1, 2, or 3 octal digits stands for
  32.     the character whose ASCII code is given by those digits.
  33.  
  34. RETURN CODES
  35.     0 if all went well
  36.     1 in case of bad argument (fatal)
  37.  
  38. CHANGES FROM UNIX
  39.     n in [a*n] expressions cannot be 0 nor missing
  40.     \ cannot be used to remove special meaning of characters [, ], etc...
  41.  
  42. AUTHOR
  43.     Denis GOUNELLE
  44.     Last modified 04-Sep-92
  45.  
  46.