|
DIRName:
For Unix/Linux/MacOS systems, the DIR command issues a
command to the operating system. For Windows systems, the DIR command issues a
command to the operating system. The string that follows the DIR on the command line is passed to the operating system as is. Dataplot does no error checking of this string. This is a system dependent command. It is currently supported for Unix/Linux/MacOS and Windows platforms.
where <file-list> is an optional string specifying what files should be listed. If <file-list> is omitted, then the contents of the current directory are listed.
DIR macros/*.dp DIR macros
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.
If you would like to display the results one screen at a time, enter the command
This adds a "/P" option under Windows. For Linux, the output will be piped to the Linux more command. To reset the default (no pause), enter the command
If you would like the contents of any listed directories to be displayed, enter the command
This adds a "/S" option under Windows and a "-R" option under Linux. To reset the default (no recursive listing of directory contents), enter the command
To specify "long listing" (i.e., more detailed information about each file), enter the command
This adds a "/N" option under Windows and a "-l" option under Linux. To reset the default ("/W" option under Windows and no "-l" option under Linux), enter the command
By default, files are listed alphabetically. To specify sorting by size, enter the command
This adds a "/O:S" option under Windows and a "-s" option under Linux. To specify sorting by date, enter the command
This adds a "/O:D" option under Windows and a "-t" option under Linux. To reset alphabetic sorting, enter the command
This adds a "/O:N" option under Windows. No option is given for Linux. If you want to use options not supported by one of the above SET commands, you can enter them manually. For example, under Linux you can do something like
SKIP 25 READ BERGER1.DAT Y X . CAPTURE FIT.OUT FIT Y X END OF CAPTURE . DIR *.OUT FIT.*
|
Privacy
Policy/Security Notice
NIST is an agency of the U.S.
Commerce Department.
Date created: 09/13/2019 |