...
The following examples demonstrate the
format command.
Panel |
---|
Html bobswift |
---|
<pre>
set firstname="Stonebranch"
set lastname="Incorporated"
format mystring "First Name: " "$(firstname)" " Last Name: " +
"$(lastname)" length=3 trunc=yes*
echo "$(mystring)"*
Output:
First Name: Stonebranch Last Name: Inc
format mystring "The " "Value " "Is: " 4 length=8 align=right pad=0*
echo "$(mystring)"
The Value Is: E8E8E804
</pre>
|
|