
Writing Technician Interface Scripts
2-22 114089 Rev. A
Example:
The following example shows how to use the let command to set up a slotmask:
let slot = $<Enter Slot Number>
let -h slotmask = 0x80000000 >> ($slot - 1)
echo “slot #” $slot “slotmask” $slotmask
Examples:
Additional examples using the let command are shown below:
let b = 5 * (10**2);
let capA = 'A'
set env letter “A”
let capA = '$letter'
let len = strlen(“abcdef”)
setenv string “answer=1”
let len = strlen(string)
let index = strindex(string, “wer”)
let index = strpbrk(string, “=:;”)
if $index = 0 then; echo “Missing Delimiter”
let index = strmatch(string, “pat”)
if $index = 0 then; echo “No match found”
Comentários a estes Manuais