noft Manual (G06.27+, H06.03+, J06.03+)

noft Manual528273-003
5-1
5 ar Utility
The ar utility creates and maintains archives composed of groups of object code files.
You can mix PIC and non-PIC files in an archive. After an archive has been created,
new files can be added, and existing files can be extracted, deleted, or replaced.
The ar utility runs in these environments:
Guardian
Open System Services (OSS)
These PC platforms:
To run the ar utility, use this syntax. The syntax is the same in every environment in
which ar runs:
action-option
is an ar option that specifies the action to be performed. The action options are:
Platform
Operating System
Windows 98 Windows NT Windows 2000 Windows XP
TDS* Yes Yes No No
ETK** No Yes Yes Yes
* HP Tandem Development Suite
** HP Enterprise Toolkit—NonStop Edition
ar action-option [modifier-option ...] [position_name]
archive [file ...]
Name Function (page 1 of 2)
-d Delete the specified files from the archive.
-m Move the specified files. The -a, -b, or -i option with the
position-name operand indicates the destination of
the move. Otherwise, move the files to the end of the
archive.
-p Write the contents of the specified files from the archive to
the standard output. If no files are specified, write the
contents of all files in the archive, from first to last.
-q Quickly append the specified files to the end of the
archive. In this case, ar does not check whether the
added members are already in the archive. Use this
option to bypass the searching otherwise done when
creating a large archive piece by piece.