BSD 2 development
[unix-history] / misc / ar.1
CommitLineData
93fd070f
BJ
1.th AR I 7/14/75
2.sh NAME
3ar \*- archive and library maintainer
4.sh SYNOPSIS
5.bd ar
6key [ posname ] afile name ...
7.sh DESCRIPTION
8.it Ar
9maintains groups of files
10combined into a single archive file.
11Its main use
12is to create and update library files as used by the loader.
13It can be used, though, for any similar purpose.
14.s3
15.it Key
16is one character from the set
17.bd drtpmx,
18optionally concatenated with
19.bd vuai.
20.it Afile
21is the archive file.
22The
23.it names
24are constituent files in the archive file.
25The meanings of the
26.it key
27characters are:
28.s3
29.bd d
30means delete the named files from the archive file.
31.s3
32.bd r
33means replace the named files in the archive file.
34If the optional character
35.bd u
36is used with
37.bd r,
38then only those files with
39modified dates later than
40the archive files are replaced.
41If the optional positioning character
42.bd a
43(also
44.bd i
45)
46is used, then the
47.it posname
48argument must be present
49and specifies a file in the archive
50after (before for
51.bd i
52)
53which new files are placed.
54Without
55.bd a
56or
57.bd i,
58new files are placed at the end.
59.s3
60.bd t
61prints a table of contents of the archive file.
62If no names are given, all files in the archive are tabled.
63If names are given, only those files are tabled.
64.s3
65.bd p
66prints the named files in the archive.
67.s3
68.bd m
69moves the named files to the end of the archive.
70If the options
71.bd i
72or
73.bd b
74are used, then the
75.it posname
76argument must be present and,
77as in
78.bd r,
79specifies where the files are to be moved
80.s3
81.bd x
82extracts the named files.
83If no names are given, all files in the archive are
84extracted.
85In neither case does
86.bd x
87alter the archive file.
88.s3
89.bd v
90means verbose.
91Under the verbose option,
92.it ar
93gives a file-by-file
94description of the making of a
95new archive file from the old archive and the constituent files.
96When used with
97.bd t,
98it gives a long listing of all information about the files.
99.sh FILES
100/tmp/vtm? temporary
101.sh "SEE ALSO"
102ld (I), archive (V)
103.sh BUGS
104If the same file is mentioned twice in an argument list,
105it may be put in the archive twice.