paxcpio is available with the System V software installation option. Refer to [a manual with the abbreviation INSTALL] for information on how to install optional software.
paxcpio produces and reads files in the format specified by the cpio Archive/Interchange File Format specified in IEEE Std. 1003.1-1988.
When specified with the -i argument, paxcpio extracts files from the standard input, which is assumed to be the product of a previous `paxcpio -o'. Only files with names that match pattern are selected. pattern is a simple regular expression given in the name-generating notation of the shell. Multiple patterns may be specified, and if no pattern is specified, the default is `*', selecting all files. The extracted files are conditionally created and copied into the current directory, and possibly any levels below, based upon the options specified. The permissions of the files will be those of the previous `paxcpio -o'. The owner and group of the files will be that of the current user unless the user has appropriate privileges, in which case paxcpio retains the owner and group of the files of the previous `paxcpio -o'.
When specified with the -p argument, paxcpio reads the standard input to obtain a list of files that are conditionally created and copied into the destination directory based upon the options described below.
If an error is detected, the cause is reported and paxcpio continues to copy other files. paxcpio will skip over any unrecognized files that it encounters in the archive.
The following restrictions apply to paxcpio:
The following command:
copies out the files listed by ls.1v and redirects them to the file newfile.
The following command:
uses the output file newfile from paxcpio -o, takes those files that match the patterns "memo/al" and "memo/b*", creates the directories below the current directory, and places the files in the appropriate directories.
The command:
takes the file names piped to it from find.1 and copies or links those files to another directory named newdir, while retaining the modification time.
paxcpio exits with one of the following values:
IEEE Std. 1003.1-1988
It is important to use the -depth option of find.1 to generate pathnames for paxcpio. This eliminates problems paxcpio could have trying to create files under read-only directories.
Mark H. Colburn NAPS International 117 Mackubin Street, Suite 1 St. Paul, MN 55102
Sponsored by The USENIX Association for public distribution.
Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97