File:  [MW Coherent from dump] / coherent / d / usr / bin / pax / cpio.man
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:38 2019 UTC (7 years, 2 months ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent




     CCCCPPPPIIIIOOOO((((1111))))                     CCCCOOOOHHHHEEEERRRREEEENNNNTTTT                      CCCCPPPPIIIIOOOO((((1111))))



     NNNNAAAAMMMMEEEE
          cpio - copy file archives in and out

     SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
          ccccppppiiiioooo ----oooo[BBBBaaaaccccvvvv]
          ccccppppiiiioooo ----iiii[BBBBccccddddffffmmmmrrrrttttuuuuvvvv] [_p_a_t_t_e_r_n...]
          ccccppppiiiioooo ----pppp[aaaaddddllllmmmmrrrruuuuvvvv] _d_i_r_e_c_t_o_r_y

     DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
          The ccccppppiiiioooo utility produces and reads files in the format
          specified by the ccccppppiiiioooo AAAArrrrcccchhhhiiiivvvveeee////IIIInnnntttteeeerrrrcccchhhhaaaannnnggggeeee FFFFiiiilllleeee FFFFoooorrrrmmmmaaaatttt
          specified in _I_E_E_E _S_t_d. _1_0_0_3._1-_1_9_8_8.

          The ccccppppiiiioooo ----iiii (copy in) utility extracts files from the
          standard input, which is assumed to be the product of a
          previous ccccppppiiiioooo ----oooo .... Only files with names that match _p_a_t_t_e_r_n_s
          are selected.  Multiple _p_a_t_t_e_r_n_s may be specified and if no
          _p_a_t_t_e_r_n_s are specified, the default for _p_a_t_t_e_r_n_s 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 described below and
          the permissions of the files will be those of the previous
          ccccppppiiiioooo ----oooo .... The owner and group of the files will be that of
          the current user unless the user has appropriate privileges,
          which causes ccccppppiiiioooo to retains the owner and group of the
          files of the previous ccccppppiiiioooo ----oooo ....

          The ccccppppiiiioooo ----pppp (pass) utility reads the standard input to
          obtain a list of path names of files that are conditionally
          created and copied into the destination _d_i_r_e_c_t_o_r_y based upon
          the options described below.

          If an error is detected, the cause is reported and the ccccppppiiiioooo
          utility will continue to copy other files.  ccccppppiiiioooo will skip
          over any unrecognized files which it encounters in the
          archive.

          The following restrictions apply to the ccccppppiiiioooo utility:

          1 Pathnames are restricted to 256 characters.

          2 Appropriate privileges are required to copy special files.

          3 Blocks are reported in 512-byte quantities.

        OOOOppppttttiiiioooonnnnssss
          The following options are available:

          ----BBBB   Input/output is to be blocked 5120 bytes to the record.
               Can only be used with ccccppppiiiioooo ----oooo or ccccppppiiiioooo ----iiii for data that
               is directed to or from character special files.




     Page 1                                         (printed 10/10/90)






     CCCCPPPPIIIIOOOO((((1111))))                     CCCCOOOOHHHHEEEERRRREEEENNNNTTTT                      CCCCPPPPIIIIOOOO((((1111))))



          ----aaaa   Reset access times of input files after they have been
               copied.  When the ----llll option is also specified, the
               linked files do not have their access times reset.  Can
               only be used with ccccppppiiiioooo ----oooo or ccccppppiiiioooo ----iiii ....

          ----cccc   Write header information in ASCII character for for
               portability.  Can only be used with ccccppppiiiioooo ----iiii or ccccppppiiiioooo ----oooo
               .... Note that this option should always be used to write
               portable files.

          ----dddd   Creates directories as needed.  Can only be used with
               ccccppppiiiioooo ----iiii or ccccppppiiiioooo ----pppp ....

          ----ffff   Copy in all files except those in _p_a_t_t_e_r_n_s . Can only
               be used with ccccppppiiiioooo ----iiii ....

          ----llll   Whenever possible, link files rather than copying them.
               Can only be used with ccccppppiiiioooo ----pppp ....

          ----mmmm   Retain previous modification times.  This option is
               ineffective on directories that are being copied.  Can
               only be used with ccccppppiiiioooo ----iiii or ccccppppiiiioooo ----pppp ....

          ----rrrr   Interactively rename files.  The user is asked whether
               to rename _p_a_t_t_e_r_n each invocation.  Read and write
               permissions for ////ddddeeeevvvv////ttttttttyyyy are required for this option.
               If the user types a null line, the file is skipped.
               Should only be used with ccccppppiiiioooo ----iiii or ccccppppiiiioooo ----oooo ....

          ----tttt   Print a table of contents of the input.  No files are
               created.  Can only be used with ccccppppiiiioooo ----iiii ....

          ----uuuu   Copy files unconditionally; usually an older file will
               not replace a new file with the same name.  Can only be
               used with ccccppppiiiioooo ----iiii or ccccppppiiiioooo ----pppp ....

          ----vvvv   Verbose: cause the names of the affected files to be
               printed.  Can only be used with ccccppppiiiioooo ----iiii .... Provides a
               detailed listing when used with the ----tttt option.

        OOOOppppeeeerrrraaaannnnddddssss
          The following operands are available:

          _p_a_t_t_e_r_n_s  Simple regular expressions given in the name-
                    generating notation of the shell.

          _d_i_r_e_c_t_o_r_y The destination directory.

        EEEExxxxiiiitttt SSSSttttaaaattttuuuussss
          The ccccppppiiiioooo utility exits with one of the following values:

          0    All input files were copied.



     Page 2                                         (printed 10/10/90)






     CCCCPPPPIIIIOOOO((((1111))))                     CCCCOOOOHHHHEEEERRRREEEENNNNTTTT                      CCCCPPPPIIIIOOOO((((1111))))



          2    The utility encountered errors in copying or accessing
               files or directories.  An error will be reported for
               nonexistent files or directories, or permissions that
               do not allow the user to access the source or target
               files.


          It is important to use the ----ddddeeeepppptttthhhh option of the ffffiiiinnnndddd utility
          to generate pathnames for ccccppppiiiioooo .... This eliminates problems
          ccccppppiiiioooo could have trying to create files under read-only
          directories.

          The following command:
               ls | cpio -o > ../newfile
          copies out the files listed by the llllssss utility and redirects
          them to the file nnnneeeewwwwffffiiiilllleeee ....

          The following command:
               cat newfile | cpio -id "memo/al" "memo/b*"
          uses the output file nnnneeeewwwwffffiiiilllleeee from the ccccppppiiiioooo ----oooo utility, takes
          those files that match the patterns mmmmeeeemmmmoooo////aaaallll and mmmmeeeemmmmoooo////bbbb**** ,,,,
          creates the directories below the current directory, and
          places the files in the appropriate directories.

          The command
               find . -depth -print | cpio -pdlmv newdir
          takes the file names piped to it from the ffffiiiinnnndddd utility and
          copies or links those files to another directory named
          nnnneeeewwwwddddiiiirrrr ,,,, while retaining the modification time.

     FFFFIIIILLLLEEEESSSS
          /dev/tty  used to prompt the user for information when the
                    ----iiii or ----rrrr options are specified.

     SSSSEEEEEEEE AAAALLLLSSSSOOOO
          find(1), pax(1), tar(1), cpio(5), tar(5)

     CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTT
          Copyright (c) 1989 Mark H. Colburn.
          All rights reserved.

          Redistribution and use in source and binary forms are
          permitted provided that the above copyright notice is
          duplicated in all such forms and that any documentation,
          advertising materials, and other materials related to such
          distribution and use acknowledge that the software was
          developed by Mark H. Colburn and sponsored by The USENIX
          Association.

          THE SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS
          OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE
          IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A



     Page 3                                         (printed 10/10/90)






     CCCCPPPPIIIIOOOO((((1111))))                     CCCCOOOOHHHHEEEERRRREEEENNNNTTTT                      CCCCPPPPIIIIOOOO((((1111))))



          PARTICULAR PURPOSE.

     AAAAUUUUTTTTHHHHOOOORRRR
          Mark H. Colburn
          NAPS International
          117 Mackubin Street, Suite 1
          St. Paul, MN 55102
          [email protected]


          Sponsored by TTTThhhheeee UUUUSSSSEEEENNNNIIIIXXXX AAAAssssssssoooocccciiiiaaaattttiiiioooonnnn for public distribution.












































     Page 4                                         (printed 10/10/90)




unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.