16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

|<br />

|<br />

|<br />

alias<br />

Portability<br />

P<strong>OS</strong>IX.2 User Portability Extension, <strong>UNIX</strong> KornShell.<br />

The –t and –x options are extensions to the P<strong>OS</strong>IX standard.<br />

Related information<br />

fc, hash, nohup, set, sh,typeset, unalias, tcsh<br />

ar — Create or maintain library archives<br />

Format<br />

Description<br />

Options<br />

ar –d[–Ilv] archive member...<br />

ar –m[–abIilsv] [posname] archive member ...<br />

ar –p[–Ilsv] archive member...<br />

ar –q[–clsv] [–F format] archive member ...<br />

ar –r[abcIilsuv] [–F format] [posname] archive member ...<br />

ar –t[Ilsv] archive[member...]<br />

ar –u[–abcIiklsv] [–F format] [posname] archive member ...<br />

ar –x[–CIlsTv] archive [member...] ...<br />

ar maintains archive libraries. The archive library is a collection of files, usually<br />

object files. Using ar, you can create a new library, add members to an existing<br />

library, delete members from a library, extract members from a library, and print a<br />

table of contents for a library.<br />

A library member is an arbitrary file. Normally, these files are object files or side<br />

files, suitable for use by a linkage editor.<br />

If any members of a library are object files, ar creates and maintains an external<br />

symbol index for link-editing.<br />

Member names in an archive are only the final component of any pathname. When<br />

creating a new library member (member) as given on the command line, ar uses<br />

the full pathname given. When storing the member name in the library, or<br />

comparing a member name, ar uses only the final component.<br />

The format shows the main functions of ar, which are defined as follows:<br />

–d Deletes each named member from the archive and regenerates the symbol<br />

table.<br />

–m Moves the named archive member in the archive. The new position is<br />

specified by –a, –b, i, or posname. If a location is not specified, the<br />

member is moved to the end of the archive.<br />

–p Displays each member specified to the standard output (stdout). If you did<br />

not specify any members, ar displays all members.<br />

–q Quickly appends the specified file to the archive. With this option, ar does<br />

not check to see if file is already a member of the archive.<br />

–r Replaces or adds file to archive. If archive does not exist, ar creates it and<br />

prints a message. When ar replaces an existing member, the archive order<br />

14 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!