Example, Nlist, Nmap – HP Integrity NonStop H-Series User Manual

Page 65: Nlist nmap

Advertising
background image

To generate remote names for the copied files, FTP applies the current settings of ntrans and nmap
to the local file names.

NOTE:

When you transfer multiple binary files to a remote T16 system using mput, the file code

for all destination files is 0.

Example

The following command copies the local files neword and oldord to the remote system:

ftp> mput {new,old}ord
mput NEWORD?y
mput OLDORD?y

nlist

Use the nlist command to obtain a list of a remote directory.

nlist

Example

ftp> nlist

(Directory information appears here.)

nmap

Use the nmap command to define or turn off a mechanism for mapping local file names to remote
file names during mput, put, and append operations and for mapping remote file names to local
file names during mget and get operations.

nmap [ inpattern outpattern ]

inpattern

defines a template that applies to the name of the original file (the local file in put and append
operations and the remote file in get operations).

To turn the mapping mechanism off, omit both inpattern and outpattern.

outpattern

defines a template that determines the resulting name for the new file (the remote file in put
and append operations and the local file in get operations).

If you specify a target name for a get or put operation, the nmap scheme is not applied.

To define a mapping scheme, first use the following conventions to specify inpattern as a
template for incoming file names:

$n

Next, specify outpattern using the following conventions:

$n

The current settings of case and ntrans are applied to the incoming file name before the name
is mapped.

Example

In this example, the mapping scheme moves characters that follow a plus sign (+) before the plus
sign and deletes letters that precede the plus sign. For example, file name one+two is mapped to
two

+.

ftp> nmap $1+$2 $2+

See

“Mapping and Translating File Names”

, earlier in this section for more examples.

FTP Command Reference

65

Advertising
This manual is related to the following products: