ar

create and maintain library archives (UNIX)

Syntax:

ar [-]d [-vq]   archive { file }    
ar [-]p [-vq]   archive { file }    
ar [-]r [-cuvq] archive { file }    
ar [-]t [-vq]   archive { file }    
ar [-]x [-vq]   archive { file }    
        

Commands:

d
Delete file from the archive.
p
Print file to standard output.

If you specify the v, each file is preceded by its name.

r
Replace file in the archive. If you specify the -u option, the file is replaced only if it's newer than the version already in the archive.
t
Write a table of contents to standard output. If you specify some files, they're the only ones listed in the table of contents; if you don't specify some files, the entire archive is listed.

If you specify the v, you get a long listing, with all information about the files.

x
Extract file from the archive. If you don't specify a file, all the files are extracted from the archive. This command doesn't change the archive.

Options:

-c
The ar utility automatically creates an archive when it needs to, and prints a message to advise you of this. This option suppresses the message.
-q
Operate quietly.
-u
Only replace file if it's newer than the version in the archive.
-v
Operate verbosely. If you use this option with the d, r, or x command, ar gives you a file-by-file description of the creation and/or modification of the archive.

Description:

The ar utility is used to create and manage archives of files. You can group files into an archive, and then add and delete files to and from the archive by using the commands described above.

See also:

wlib