9.0;cpl (copy_link), revision 9.0, 85/04/22
CPL (COPY_LINK) -- Copy a link.
usage: CPL linkname [pathname] [-C|-R] [-CHN] [-LL] [-LDL] {CL}
FORMAT
CPL linkname [pathname] ... [options]
CPL copies a linkname to the target object.
ARGUMENTS
Multiple linkname/pathname pairs and wildcarding are permitted.
linkname
(required) Specify the name of the link to be copied.
pathname
(optional) Specify the target pathname of the copied link. If
'pathname' is a linkname, then this link is created or
replaced (depending on various options below). If
'pathname' is a directory, then the link text is copied
into this directory. In no case is the object to which the
link refers affected: only the text of the link itself.
Default if omitted: copy link into current working
directory.
OPTIONS
Default options are indicated by "(D)."
-C (D) Create source link at target. An error occurs if the
target link already exists.
-R Replace target with copy of source.
-LL List links copied.
-LDL List links deleted because of replacement (-R).
-CHN Change name of existing link with target_pathname before
copying.
This command uses the command line parser, and so also accepts the standard
command options listed in HELP CL.
EXAMPLES
1. $ cpl //ai/sources /progs Copy the link "//ai/sources"
to the node entry directory as
"progs".
2. $ cpl //zorba/sys/print /sys -r Copy the link "/sys/print" from the
node whose entry directory is
"zorba" to the local /sys directory,
replacing any existing link.