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

RM

RMDIR Name:
    RM
    RMDIR
Type:
    Support Command
Purpose:
    This command deletes one or more files or directories.
Description:
    This command uses an operating system command to delete one or more files or one or more directories.

    For Unix/Linux/MacOS systems, the RM command issues a

      rm ....

    command to the operating system and the RMDIR command issues a

      rm -r ...

    command to the operating system.

    For Windows systems, the RM command issues an

      ERASE ....

    command to the operating system and the RMDIR command issues a

      DELTRE ...

    command to the operating system.

    The RMDIR command will remove any files or sub-directories under the directory being removed.

    The string that follows the RM or RMDIR on the command line is passed to the operating system as is. Dataplot does no error checking of this string.

    This command should be used with caution so that files are not accidentally deleted.

    This is a system dependent command. It is currently supported for Unix/Linux/MacOS and Windows platforms.

Syntax 1:
    RM <file-list>
    where <file-list> is a string containing a list of one or more files to delete.
Syntax 2:
    RMDIR <file-list>
    where <file-list> is a string containing a list of one or more directories to delete.
Examples:
    RM *.ps
    RM macro.out macro.ps macro.pdf
    RMDIR macros tmp
Note:
    The RM capability can be implemented by direct use of the SYSTEM command. For example, under Linux do something like

      system rm junk*.out

    The motivation for adding this as a separate command is to allow the capability to be implemented in an operating system independent way. This can be useful when writing general purpose macros that may be used on different operating systems.

Default:
    None
Synonyms:
    None (DELETE and ERASE were not added as synonyms as these commands are already used in Dataplot)
Note:
    Dataplot does no checking to ensure that a valid file name or directory name was specified. The entered string is passed to the operating system as entered.
Note:
    File names are case sensitive on Unix/Linux/MacOS file systems. For this reason, case is preserved in passing the file list to the operating system.
Related Commands:
    SYSTEM = Enter an operating system command within a Dataplot session.
    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.
    CAT = List the contents of a file.
Applications:
    Interactive Usage
Implementation Date:
    2019/09
Program:
     
    . Automatically convert Postscript output to PDF and then
    . delete the original Postscript file
    .
    SKIP 25
    READ BERGER1.DAT Y X
    .
    SET POSTSCRIPT CONVERT PDF
    SET IPL1NA PLOT.PS
    CHARACTER X
    LINE BLANK
    .
    PLOT Y X
    .
    DEVICE 2 CLOSE
    RM PLOT.PS
        

Privacy Policy/Security Notice
Disclaimer | FOIA

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

Date created: 09/13/2019
Last updated: 09/13/2019

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