Вы находитесь на странице: 1из 2

MT XIA INC.

PUBLICATIONS - QUICK REFERENCE


KORN SHELL 93 – TYPESET COMMAND typeset +E variableName typeset -l variableName
remove the floating point scientific notation type from initializes a lowercase only variable called
Mt Xia publishes information on a variety of topics such as “variableName”. does not alter assigned value. “variableName”. converts upper case characters to
Business Continuity, Disaster Recovery, High Availability, lower case upon assignment.
AIX, and Shell Programming. typeset -F[n] variableName
initializes a floating point variable called typeset -l variableName=characterString
“variableName”. n is the number of decimal places. initializes a lowercase only variable called
Mt Xia Inc. “variableName” and assigns it a value of
113 East Rich typeset -F[n] variableName=floatValue
“characterString” converting upper case characters to
Norman, OK 73069 initializes a floating point variable called
lower case.
“variableName” and assigns it a value of “floatValue”.
Dana French, President n is the number of decimal places. typeset -l
dfrench@mtxia.com displays a list of all variables defined as lowercase
typeset -F
615.556.0456 type, and their associated value.
displays a list of all variables defined as floating point
type, and their associated value. typeset +l
typeset displays a list of all variable names defined as
typeset +F
set attributes and values of variables. used inside lowercase type.
displays a list of all variable names defined as floating
function, makes a variable local to the function.
point type. typeset +l variableName
typeset -A variableName remove the lowercase only type from “variableName”.
typeset +F variableName
initializes an associative array variable named does not alter assigned value.
remove the floating point type from “variableName”.
“variableName”.
does not alter assigned value. typeset -L[n] variableName
typeset -A initializes a left justified type variable called
typeset -H
displays a list of all associative array variables defined “variableName”. n is width (in characters) of the left
UNIX to host file name mapping on non-UNIX
in the current shell, with the associative array index justified value.
systems.
and value of the last element of each array.
typeset -L[n] variableName=stringValue
typeset -i[n] variableName
typeset +A initializes a left justified type variable called
initializes an integer variable called “variableName”. n
displays a list of all associative array variable names “variableName” and assigns it a value of
is the output base (default: 10).
defined in the current shell. “stringValue”. n is the width (in characters) of the left
typeset -i[n] variableName=integerValue justified value. If the number of characters in
typeset -E[n] variableName
initializes an integer variable called “variableName” “stringValue” is more than n, then “stringValue” is
initializes a floating point scientific notation variable
and assigns it a value of integerValue. n is the output truncated to n characters.
called “variableName”. n is the number of significant
base (default: 10).
digits. typeset -L
typeset -i displays a list of all variables defined as left justified
typeset -E[n] variableName=floatValue
displays a list of all variables defined as integer type, type, and the value associated with each.
initializes a floating point scientific notation variable
and their associated value.
called “variableName” and assigns it a value of typeset +L
“floatValue”. n is the number of significant digits. typeset +i displays a list of all variable names defined as left
displays a list of all variable names defined as integer justified type.
typeset -E
type.
displays a list of all variables defined as floating point typeset +L variableName
scientific notation type, and their associated value. typeset +i variableName remove the left justified type from “variableName”.
remove the integer type from “variableName”. does does not alter assigned value.
typeset +E
not alter assigned value.
displays a list of all variable names defined as floating
point scientific notation type.

Copyright 2006 Mt Xia Inc, All Rights Reserved


MT XIA INC. PUBLICATIONS - QUICK REFERENCE
typeset -n variableName=variableNameReference typeset +R typeset -x variableName
initializes a named reference to a variable called displays a list of all variable names defined as right exports “variableName” to subshells and
“variableName”. similar to assigning pointers. justified type. subprograms.
typeset -n typeset +R variableName typeset -x variableName=characterString
displays a list of all variables defined as left justified remove the right justified type from “variableName”. assigns the value “characterString” to the variable
type, and their associated value. does not alter assigned value. “variableName” and exports it to subshells and
subprograms.
typeset +n typeset -u variableName
displays a list of all variable names defined as name initializes a uppercase only variable called typeset -x
reference type. “variableName”. converts lower case characters to displays a list of all exported variables, and their
upper case upon assignment. associated value.
typeset +n variableName
remove the name reference type from typeset -u variableName=characterString typeset +x
“variableName”. does not alter assigned value. initializes a uppercase only variable called displays a list of all exported variable names.
“variableName” and assigns it a value of
typeset -p typeset +x variableName
“characterString” converting lower case characters to
display all typeset commands to recreate current unexport the variable “variableName” from the current
upper case.
variables. shell environment. does not alter assigned value.
typeset -u
typeset -r variableName=stringValue typeset -Z[n] variableName
displays a list of all variables defined as uppercase
initialize a read-only variable called “variableName” initializes a zero filled, right justified type variable
type, and the value associated with each.
and assign it a value of “stringValue”. value must be called “variableName”. n is width (in characters) of
assigned at the same time the variable is initialized. typeset +u the right justified, zero filled value. Any value
displays a list of all variable names defined as assigned to “variableName” will be zero filled, then
typeset -r
uppercase type. right justified.
displays a list of all variables defined as read only
type, and their associated value. typeset +u variableName typeset -Z[n] variableName=integerValue
remove the uppercase only type from “variableName”. initializes a right justified, zero filled type variable
typeset +r
does not alter assigned value. called “variableName” and assigns it a value of
displays a list of all variable names defined as read
“integerValue”. n is the width (in characters) of the
only type. typeset -ui[n] variableName
right justified, zero filled value. If the number of
initializes an unsigned integer variable called
typeset -R[n] variableName characters in “integerValue” is less than n, then
“variableName”. n is the output base (default: 10).
initializes a right justified type variable called zero's are prefixed onto “integerValue” until it is n
“variableName”. n is width (in characters) of the right typeset -ui[n] variableName=integerValue characters in length.
justified value. initializes an unsigned integer variable called
typeset -Z
“variableName” and assigns it a value of integerValue.
typeset -R[n] variableName=stringValue displays a list of all variables defined as right justified,
n is the output base (default: 10).
initializes a right justified type variable called zero filled type, and the value associated with each.
“variableName” and assigns it a value of typeset -ui
typeset +Z
“stringValue”. n is the width (in characters) of the right displays a list of all variables defined as unsigned
displays a list of all variable names defined as right
justified value. If the number of characters in integer type, and the value associated with each.
justified, zero filled type.
“stringValue” is more than n, then “stringValue” is
typeset +ui
truncated to n characters. typeset +Z variableName
displays a list of all variable names defined as
remove the right justified, zero filled type from
typeset -R unsigned integer type.
“variableName”. does not alter assigned value.
displays a list of all variables defined as right justified
typeset +ui variableName
type, and their associated value.
remove the unsigned integer type from
“variableName”. does not alter assigned value.

Copyright 2006 Mt Xia Inc, All Rights Reserved

Вам также может понравиться