
Sample Scripts
114089 Rev. A A-39
################################################################
#
# Version command
#
################################################################
:FI_VER:
echo “fddi.bat Version: 1.11 Date: 10/31/94.”
goto :FI_END:
#
# Circuit Name fetching Gosub...
#
:GETCCTNAME:
if $?(wfCircuitNameEntry.wfCircuitName.$cctnum) = 0 then ; \
setenv cctname “” ; \
return
setenv cctname “$(wfCircuitNameEntry.wfCircuitName.$cctnum)”
return
#
# Branch point to print footer of table, then fall through to end
of
# script.
#
:FOOTER_AND_END:
echo
let tbl_entries = $i - 1
if “$matchcct” = “” then ; goto :FAE_SKIP:
if $match_entries = 1 then ; \
printf “Found %5d match out of ” $match_entries; goto
:FAE_SKIP:
printf “Found %5d matches out of ” $match_entries
:FAE_SKIP:
if $tbl_entries = 1 then ; \
printf “%5d entry in table.\n” $tbl_entries ; \
goto :FAE_DONE:
printf “%5d entries in table.\n” $tbl_entries
:FAE_DONE:
#
# Exit branch point...
#
:FI_END:
Commentaires sur ces manuels