16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

tput<br />

Exit Values<br />

Portability<br />

Related Information<br />

stty, tabs<br />

TERM Contains the current terminal type.<br />

TERMINFO<br />

Can be used to override the default database.<br />

0 tput successfully wrote an appropriate character sequence to change the<br />

terminal’s characteristics, or a Boolean terminfo variable is true.<br />

1 A Boolean terminfo variable is false.<br />

2 Failure that generated a usage message such as:<br />

v capname was not a recognized keyword<br />

v You specified an incorrect command-line option<br />

3 tput has no information about the terminal type given by –T or TERM.<br />

4 The requested capname cannot be performed on your type of terminal.<br />

>4 An error occurred.<br />

tr — Translate characters<br />

Format<br />

Description<br />

Options<br />

P<strong>OS</strong>IX.2 User Portability Extension, <strong>UNIX</strong> systems.<br />

tr [–c | C] [-s] string1 string2<br />

tr –s [–c | C] string1<br />

tr –d [–c | C] string1<br />

tr –ds [–c | C] string1 string2<br />

tr copies data read from the standard input to stdout, substituting or deleting<br />

characters as specified by the options and string1 and string2. string1 and string2<br />

are considered to be sets of characters. In its simplest form, tr translates each<br />

character in string1 into the character at the corresponding position in string2.<br />

Note: tr works on a character basis, not on a collation element basis. Thus, for<br />

example, a range that includes the multicharacter collation element ch in<br />

regular expressions, does not include it here.<br />

–c If the variable _<strong>UNIX</strong>03 is unset or is not set to YES, the behavior of -c<br />

option complements the set of characters specified by string1. This means<br />

that tr constructs a new set of characters, consisting of all the characters<br />

not found in string1 and uses this new set in place of string1.<br />

704 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference<br />

If the variable _<strong>UNIX</strong>03=YES is set, the behavior of -c option complements<br />

the set of values specified by string1. This means that tr constructs a new<br />

set and the complements of the values specified by string1 (the set of all

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!