11.07.2015 Views

NetEx EFT213 Reference Manual Rel 5.4

NetEx EFT213 Reference Manual Rel 5.4

NetEx EFT213 Reference Manual Rel 5.4

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Second, the exclamation point is used to escape the ‘{‘ and ‘}’ characters. An exclamation point appearingimmediately before either of these characters tells <strong>NetEx</strong>/eFT to take them literally and skipany string processing that would normally be done. For example:eFT> text Leave the braces !{here!}.Finally, the exclamation point is used to tell <strong>NetEx</strong>/eFT not to do any alias processing on a givencommand. Since an alias may have the same name as a <strong>NetEx</strong>/eFT command, an exclamation pointimmediately preceding a command tells <strong>NetEx</strong>/eFT to use the command, not the alias. The sameholds true for local and remote command aliases. If an exclamation point appears immediately beforea command preceded by LOCAL or REMOTE, <strong>NetEx</strong>/eFT uses the command as it appears withoutprocessing it as an alias. Each of the following lines in the example below tells <strong>NetEx</strong>/eFT to use thecommand even if an alias by the same name has been defined:eFT> !text ignore alias processing on texteFT> local !direFT> remote !who.{ This character marks the beginning of string substitution. It is used along with the ‘}’ character todelimit a positional parameter, a string variable, or a string function. For example, to print out thevalue of string variable NAME, the following command could be issued:eFT> text Your name is {name}.To tell <strong>NetEx</strong>/eFT to take either the ‘{‘ or ‘}’ literally, use the exclamation point:eFT> text Print the line with braces !{name!}.To tell <strong>NetEx</strong>/eFT to turn off string substitution, the sequence ‘{}’ is used:eFT> text {} Turn off string substitution {name}.} This character marks the end of string substitution. See the explanation of ‘{’ above.“ The double quote character allows the user to create a string that contains embedded blanks:eFT> set input prompt "NEW PROMPT> "To escape the double quote character, type two in a row (“ ”)<strong>NetEx</strong>/eFT String Substitution<strong>NetEx</strong>/eFT string substitution gives users the ability to write complex aliases and input scripts. String substitutioncan take place anywhere within a <strong>NetEx</strong>/eFT command line. The syntax is:{string}where string is either a string literal, string variable (including positional parameters), or a string function.String substitution involves the replacement of {string} by its computed value. The result, or replaced value,of string substitution is always a string.A string literal refers to any quoted string. The following are examples of a string literal:“ ”“Box”“Big Box”“This is a Big Box”Performing string substitution on these string literals within a <strong>NetEx</strong>/eFT TEXT command produces the followingresults:Page 62 Advanced Local User’s Guide REF-eFT213-R<strong>5.4</strong>-08

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!