Difference between revisions of "32v 1m ar"

From Computer History Wiki
Jump to: navigation, search
(DESCRIPTION =)
Line 1: Line 1:
AR(1)               UNIX Programmer's Manual               AR(1)
+
AR(1)UNIX Programmer's Manual AR(1)
  
 
== NAME ==
 
== NAME ==
    ar - archive and library maintainer
+
ar - archive and library maintainer
  
 
== SYNOPSIS ==
 
== SYNOPSIS ==
    ar key [ posname ] afile name ...
+
ar key [ posname ] afile name ...
  
 
== DESCRIPTION ==
 
== DESCRIPTION ==
    _A_r maintains groups of files combined into a single archive
+
Ar maintains groups of files combined into a single archive
    file.  Its main use is to create and update library files as
+
file.  Its main use is to create and update library files as
    used by the loader.  It can be used, though, for any similar
+
used by the loader.  It can be used, though, for any similar
    purpose.
+
purpose.
  
    _K_e_y is one character from the set drqtpmx, optionally con-
+
Key is one character from the set drqtpmx, optionally con-
    catenated with one or more of vuaibcl. _A_f_i_l_e is the archive
+
catenated with one or more of vuaibcl. Afile is the archive
    file.  The _n_a_m_e_s are constituent files in the archive file.
+
file.  The names are constituent files in the archive file.
    The meanings of the _k_e_y characters are:
+
The meanings of the key characters are:
  
    d    Delete the named files from the archive file.
+
d    Delete the named files from the archive file.
  
    r    Replace the named files in the archive file.  If the
+
r    Replace the named files in the archive file.  If the
          optional character u is used with r, then only those
+
optional character u is used with r, then only those
          files with modified dates later than the archive files
+
files with modified dates later than the archive files
          are replaced.  If an optional positioning character
+
are replaced.  If an optional positioning character
          from the set abi is used, then the _p_o_s_n_a_m_e argument
+
from the set abi is used, then the posname argument
          must be present and specifies that new files are to be
+
must be present and specifies that new files are to be
          placed after (a) or before (b or i) _p_o_s_n_a_m_e.  Otherwise
+
placed after (a) or before (b or i) posname.  Otherwise
          new files are placed at the end.
+
new files are placed at the end.
  
    q    Quickly append the named files to the end of the
+
q    Quickly append the named files to the end of the
          archive file.  Optional positioning characters are
+
archive file.  Optional positioning characters are
          invalid.  The command does not check whether the added
+
invalid.  The command does not check whether the added
          members are already in the archive.  Useful only to
+
members are already in the archive.  Useful only to
          avoid quadratic behavior when creating a large archive
+
avoid quadratic behavior when creating a large archive
          piece-by-piece.
+
piece-by-piece.
  
    t    Print a table of contents of the archive file.  If no
+
t    Print a table of contents of the archive file.  If no
          names are given, all files in the archive are tabled.
+
names are given, all files in the archive are tabled.
          If names are given, only those files are tabled.
+
If names are given, only those files are tabled.
  
    p    Print the named files in the archive.
+
p    Print the named files in the archive.
  
    m    Move the named files to the end of the archive.  If a
+
m    Move the named files to the end of the archive.  If a
          positioning character is present, then the _p_o_s_n_a_m_e
+
positioning character is present, then the posname
          argument must be present and, as in r, specifies where
+
argument must be present and, as in r, specifies where
          the files are to be moved.
+
the files are to be moved.
  
    x    Extract the named files.  If no names are given, all
+
x    Extract the named files.  If no names are given, all
          files in the archive are extracted.  In neither case
+
files in the archive are extracted.  In neither case
          does x alter the archive file.
+
does x alter the archive file.
  
    v    Verbose.  Under the verbose option, _a_r gives a file-
+
v    Verbose.  Under the verbose option, ar gives a file-
          by-file description of the making of a new archive file
+
by-file description of the making of a new archive file
          from the old archive and the constituent files.  When
+
from the old archive and the constituent files.  When
          used with t, it gives a long listing of all information
+
used with t, it gives a long listing of all information
          about the files.  When used with p, it precedes each
+
about the files.  When used with p, it precedes each
          file with a name.
+
file with a name.
  
    c    Create.  Normally _a_r will create _a_f_i_l_e when it needs
+
c    Create.  Normally ar will create afile when it needs
          to.  The create option suppresses the normal message
+
to.  The create option suppresses the normal message
          that is produced when _a_f_i_l_e is created.
+
that is produced when afile is created.
  
    l    Local.  Normally _a_r places its temporary files in the
+
l    Local.  Normally ar places its temporary files in the
          directory /tmp.  This option causes them to be placed
+
directory /tmp.  This option causes them to be placed
          in the local directory.
+
in the local directory.
  
 
== FILES ==
 
== FILES ==
    /tmp/v*  temporaries
+
/tmp/v*  temporaries
  
 
== SEE ALSO ==
 
== SEE ALSO ==
    [[32v 1m ld|ld(1)]], [[32v 5m ar|ar(5)]], [[32v 1m lorder|lorder(1)]]
+
[[32v 1m ld|ld(1)]], [[32v 5m ar|ar(5)]], [[32v 1m lorder|lorder(1)]]
  
 
== BUGS ==
 
== BUGS ==
    If the same file is mentioned twice in an argument list, it
+
If the same file is mentioned twice in an argument list, it
    may be put in the archive twice.
+
may be put in the archive twice.
  
 
[[Category:32v man section 1]]
 
[[Category:32v man section 1]]

Revision as of 16:28, 29 October 2009

AR(1)UNIX Programmer's Manual AR(1)

NAME

ar - archive and library maintainer

SYNOPSIS

ar key [ posname ] afile name ...

DESCRIPTION

Ar maintains groups of files combined into a single archive file. Its main use is to create and update library files as used by the loader. It can be used, though, for any similar purpose.

Key is one character from the set drqtpmx, optionally con- catenated with one or more of vuaibcl. Afile is the archive file. The names are constituent files in the archive file. The meanings of the key characters are:

d Delete the named files from the archive file.

r Replace the named files in the archive file. If the optional character u is used with r, then only those files with modified dates later than the archive files are replaced. If an optional positioning character from the set abi is used, then the posname argument must be present and specifies that new files are to be placed after (a) or before (b or i) posname. Otherwise new files are placed at the end.

q Quickly append the named files to the end of the archive file. Optional positioning characters are invalid. The command does not check whether the added members are already in the archive. Useful only to avoid quadratic behavior when creating a large archive piece-by-piece.

t Print a table of contents of the archive file. If no names are given, all files in the archive are tabled. If names are given, only those files are tabled.

p Print the named files in the archive.

m Move the named files to the end of the archive. If a positioning character is present, then the posname argument must be present and, as in r, specifies where the files are to be moved.

x Extract the named files. If no names are given, all files in the archive are extracted. In neither case does x alter the archive file.

v Verbose. Under the verbose option, ar gives a file- by-file description of the making of a new archive file from the old archive and the constituent files. When used with t, it gives a long listing of all information about the files. When used with p, it precedes each file with a name.

c Create. Normally ar will create afile when it needs to. The create option suppresses the normal message that is produced when afile is created.

l Local. Normally ar places its temporary files in the directory /tmp. This option causes them to be placed in the local directory.

FILES

/tmp/v* temporaries

SEE ALSO

ld(1), ar(5), lorder(1)

BUGS

If the same file is mentioned twice in an argument list, it may be put in the archive twice.