United States-English |
|
|
HP-UX Reference > Llifcp(1)HP-UX 11i Version 3: February 2007 |
|
NAMElifcp — copy to or from LIF files SYNOPSISlifcp [-T xxx] [-L xxx] [-v xxx] [-a] [-b] [-i xxx] [-r] [-t] file1 file2 lifcp [-T xxx] [-L xxx] [-v xxx] [-a] [-b] [-i xxx] [-r] [-t] [file1 file2 ...] directory DESCRIPTIONlifcp copies a LIF file to an HP-UX file, an HP-UX file to a LIF file, or a LIF file to another LIF file. It also copies a list of (HP-UX/LIF) files to a (LIF/HP-UX) directory. The last name on the argument list is the destination file or directory. OptionsThe space between option and argument is optional.
The default copying modes when copying from LIF to HP-UX are summarized in the following table:
When copying from HP-UX to LIF, the default copying mode is ASCII and an ASCII file is created. When copying from LIF to LIF, if no options are specified, then all the LIF directory fields and file contents are duplicated from source to destination. A LIF file name is recognized by the embedded colon (:) delimiter (see lif(4) for LIF file naming conventions). A LIF directory is recognized by a trailing colon. If an HP-UX file name containing a colon is used, the colon must be escaped with two backslash characters (\\) (the shell removes one of them). The file name - (dash) is interpreted to mean standard input or standard output, depending on its position in the argument list. This is particularly useful if the data requires nonstandard translation. When copying from standard input, if no other name can be found, the name "STDIN" is used. LIF file naming conventions are known only to the LIF utilities. Since file name expansion is done by the shell, this mechanism cannot be used for expanding LIF file names. Do not mount the special file while using lifcp. DIAGNOSTICSlifcp returns exit code 0 if the file is copied successfully. Otherwise it prints a diagnostic and returns nonzero. EXAMPLESCopy HP-UX file abc to LIF file CDE on LIF volume lifvol which is actually an HP-UX file initialized to be a LIF volume: lifcp abc lifvol:CDE Copy all the HP-UX files in the current directory to the LIF volume lifvol which is present in the parent directory. File names are translated to appropriate LIF file names. lifcp -t * ../lifvol: Copy all the HP-UX object files in the current directory to the LIF volume lifvol. Copying mode is RAW and LIF file types are set to -5555. lifcp -r -T -5555 -t *.o lifvol: Copy all the object files in the current directory to the LIF volume lifvol. Copying mode is BINARY and LIF BINARY files are created. lifcp -r -T 0xffffe961 -i 0x20200080 bdat lifvol:BDAT Copy a BDAT file, without a password, from a BASIC WorkStation to an HP-UX LIF volume lifvol. Note that -i controls protection and record size attributes. The file type for a BDAT file is -5791 (or 0xffffe961) and its record size is 256 bytes per record. lifcp -b *.o lifvol: Copy all files in the current directory to the LIF volume lifvol in the root directory. Copying mode is RAW and LIF file types are set to BIN. lifcp -r -t * /lifvol: Copy file abc: to LIF file CDE in lifvol. lifcp abc\\: lifvol:CDE Copy files abc and def to LIF files ABC and DEF within lifvol. lifcp -t abc def lifvol: Copy LIF file ABC within lifvol to file ABC within current directory. lifcp lifvol:ABC . Copy standard input to LIF file A_FILE on LIF volume /dev/dsk/c0t6d0. lifcp - /dev/dsk/c0t6d0:A_FILE Copy LIF file ABC in lifvol to LIF file CDE on /dev/dsk/c0t6d0 . lifcp lifvol:ABC /dev/dsk/c0t6d0:CDE Copy the output of pr to the LIF file ABC. pr abc | lifcp - lifvol:ABC Copy the output of pr to the LIF volume lifvol. LIF file STDIN is created since no file names are specified. pr abc | lifcp - lifvol: Copy LIF file ABC in lifvol to standard output. lifcp lifvol:ABC - Copy all files in current directory to LIF files of the same name on LIF volume lifvol (may cause errors if file names in the current directory do not obey LIF naming conventions!). lifcp * ../lifvol: |
Printable version | ||
|