[8100] in Athena Bugs

home help back first fref pref prev next nref lref last post

Re: rsaix 7.3M: tr

daemon@ATHENA.MIT.EDU (lwvanels@ATHENA.MIT.EDU)
Wed Sep 4 12:51:24 1991

From: lwvanels@ATHENA.MIT.EDU
Date: Wed, 4 Sep 91 12:51:56 -0400
To: Tom Palka <tompalka@ATHENA.MIT.EDU>
Cc: bugs@ATHENA.MIT.EDU
In-Reply-To: [8096]
Reply-To: lwvanels@mit.edu

From "man tr" on the RS/6000: (/usr/usg/tr is a hard link to /usr/bin/tr on
the default setup shipped by IBM).

  For compatibility with BSD, there are two tr commands.  The BSD
  version is in the /usr/ucb/tr file.  The AIX version is in the
  /usr/usg/tr file.  
  In the AIX version, abbreviations that can be used to introduce
  ranges of characters or repeated characters are as follows:

  [a-z] Stands for a string of characters whose ASCII codes run from
  character a to character z, inclusive.

  [a*num]       Stands for the number of repetitions of a. The num vari-
  able is considered to be in decimal unless the first digit of num
  is 0; then it is considered to be in octal.

  In the BSD version, the abbreviation that can be used to intro-
  duce ranges of characters is:

  a-z   Stands for a string of characters whose ASCII codes run from
  character a to character z, inclusive.

....

  2.    To translate lowercase characters to uppercase:

  /usr/usg/tr  '[a-z]'  '[A-Z]'  <textfile  >newfile
  or
  /usr/ucb/tr a-z A-Z <textfile >newfile

home help back first fref pref prev next nref lref last post