Mdir, Examples, Mget – HP Integrity NonStop H-Series User Manual
Page 63: Example, Mkdir, Mdir mget mkdir

ftp> mdelete cust* *x
mdelete CUST123?y
mdelete CUST451?n
mdelete ACCT40X?y
.
.
mdir
Use the mdir command to display directory information about one or more remote files.
mdir remote-files [ remote-files ] ... local-file
remote-files
is a file name or a wild-card name that specifies the remote files you want described.
local-file
sends the output to a local file instead of your terminal. FTP prompts you to confirm that you
want to send output to the specified file. If the file does not exist, FTP creates a text file.
If you want to display the output, specify a hyphen (-) as the local file.
This is a required parameter. You must specify either a file name or a hyphen.
Examples
To display information about all files in the current working directory, enter the following command:
ftp> mdir *
(local-file) -
(Directory information appears here.)
To direct the output to a local file named ldir, enter the following mdir command and respond to
the prompt by typing the letter y:
ftp> mdir * ldir
output to local-file: ldir? y
ftp>
mget
Use the mget command to copy one or more remote files to the local current default subvolume.
mget remote-files [ remote-files ] ...
remote-files
is a file name or a wild-card name that specifies the remote files you want to copy. If you
specify a wild-card name, the glob toggle must be on.
You can use the lcd command to change the default subvolume before you use mget.
To generate local names for the copied files, FTP applies the current settings of case, ntrans, and
nmap to the remote file names.
Example
The following command copies all files that begin with the seven letters payroll, followed by two
more characters.
ftp> mget payroll??
mget PAYROLL45? y
mget PAYROLL58? y
.
.
mkdir
Use the mkdir command to create a directory on the remote system.
FTP Command Reference
63