SED navigation bar go to SED home page go to Dataplot home page go to NIST home page SED Home Page SED Staff SED Projects SED Products and Publications Search SED Pages
Dataplot Vol 1 Vol 2

ALIAS

Name:
    ALIAS
Type:
    Support Command
Purpose:
    Create user-defined shortcuts for commands.
Description:
    Creating aliases is primarily intended to allow you to create shortcuts for frequently used commands. For example, you do something like

      alias v psview plot.ps

    If you subsequently enter

      v

    then what gets executed is

      psview plot.ps

    That is, the first argument is the name of the alias and everything after the first argument is what gets executed when the alias name is entered.

    Up to 30 aliases can be defined. These ALIAS commands can be added to your dplogf.tex so that they are immeditately available when you start a Dataplot session.

    Two restrictions should be noted.

    1. The ALIAS command is limited to a single command line.

    2. Aliases do not support arguments. That is,

        alias v psview
        v plot.ps

      is not supported.

Syntax 1:
    ALIAS <name> <string>
    where <name> is a string that specifies the name of the alias;
    and     <string> are the characters that specify the command that will be executed when the alias name is entered.

    The <name> argument is limited to a maximum of eight characters.

Syntax 2:
    LIST ALIAS

    This command lists all currently defined aliases.

Syntax 3:
    ALIAS CLEAR ALL

    This command clears all currently defined aliases.

Syntax 4:
    ALIAS CLEAR <name>
    where <name> is the name of previously defined alias.

    This command clears the specified alias. Currently, only a single alias can be cleared with this command.

Examples:
    ALIAS V PSVIEW DPPL1F.DAT
    ALIAS LIST
    ALIAS CLEAR ALL
    ALIAS CLEAR V
Note:
    You can define an alias for more than command. For example,

      separator character @
      alias rx reset data; call clipboard
      separator character ;

    It is important to temporarily redefine the separator character before the alias command. In the above example, if the separator character command is omitted, the alias would be set to "reset data" and "call clipboard" would be executed as a separate command.

Default:
    No aliases are defined by default
Synonyms:
    None
Related Commands:
    SYSTEM = Enter an operating system command within a Dataplot session.
    CAT = Display the contents of a file.
    CD = Change the current working directory.
    PWD = Retrieve the current working directory.
    MKDIR = Create a new directory.
    RM = Delete one or more files.
    DIR = List the contents of a directory.
Applications:
    Interactive Usage
Implementation Date:
    2021/04
Program:
     
    alias v  psview dppl1f.dat
    device 2 postscript
    plot x**2 for x = 1 1 9
    device 2 close
    v
        

Privacy Policy/Security Notice
Disclaimer | FOIA

NIST is an agency of the U.S. Commerce Department.

Date created: 04/17/2021
Last updated: 04/17/2021

Please email comments on this WWW page to alan.heckert@nist.gov.