tr man page on Minix

Man page or keyword search:  
man Server   6208 pages
apropos Keyword Search (all sections)
Output format
Minix logo
[printable version]

TR(1)									 TR(1)

NAME
       tr - translate character codes

SYNOPSIS
       tr [-cds] [string1] [string2]

OPTIONS
       -c   # Complement the set of characters in string1

       -d   # Delete all characters specified in string1

       -s   # Squeeze all runs of characters in string1 to one character

EXAMPLES
       tr ′A-Z′ ′a-z′ <x >y
			   # Convert upper case to lower case

       tr -d ′0123456789′ <f1 >f2
			   # Delete all digits from f1

DESCRIPTION
       Tr  performs  simple character translation.  When no flag is specified,
       each character in string1 is mapped onto the corresponding character in
       string2 .

       There  are  two	types  of  tr out there, one that requires [ and ] for
       character classes, and one that does not.  Here	is  what  the  example
       above would look like for a tr that needs the brackets:

	      tr ′[A-Z]′ ′[a-z]′ <x >y

       Use  [ and ] if you want to be portable, because a tr that doesn't need
       them will still accept the syntax and mindlessly translate [ into [ and
       ] into ].

       MINIX tr supports the following character classes: alnum, alpha, digit,
       lower, upper and xdigit.	 If  any  of  these  keywords  is  encountered
       between backets and colons, it is replaced by respectively alphanumeric
       characters, alphabetic characters, decimal digits,  lowercase  letters,
       uppercase  letters and hexadecimal digits. The following are equivalent
       with the given examples:

       tr ′[:upper:]′ ′[:lower:]′ <x >y
			   # Convert upper case to lower case

       tr -d ′[:digit:]′ <f1 >f2
			   # Delete all digits from f1

									 TR(1)
[top]

List of man pages available for Minix

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net