Avaya Writing Technician Interface Scripts Manual do Utilizador Página 51

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 122
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 50
Command Reference
114089 Rev. A 2-17
let
The let command allows you to evaluate a simple arithmetical or logical
expression and assign the result to a given variable.
The
let command has the following syntax:
let
<flag>
<flag>
formats the result, as follows:
-s in signed decimal (default)
-u in unsigned decimal
-h in hexadecimal
-date as MM/DD/YY
-days as DD days
-time as HH:MM:SS; Modulo 24 hours
-tz as [+|-]HH:MM; Modulo +/-12:00
The following flags may be used together. Flag combinations other than those
listed below are invalid.
-date -time as MM/DD/YY HH:MM:SS
-
days -time as DD days HH:MM:SS
The flags must immediately precede the variable name that represents the result,
as shown in the following example:
let -h a = 1 + 2
In the following script, variable name b is assigned the sum of variable name a
plus 1.
setenv a 1
let b=$a+1
The let command evaluates an expression from left to right. You can use
parentheses to change the order of the evaluation.
Vista de página 50
1 2 ... 46 47 48 49 50 51 52 53 54 55 56 ... 121 122

Comentários a estes Manuais

Sem comentários