1acctmerg(1M) System Administration Commands acctmerg(1M)
2
3
4
6 acctmerg - merge or add total accounting files
7
9 /usr/lib/acct/acctmerg [-a] [-i] [-p] [-t] [-u] [-v]
10 [filename] ...
11
12
14 acctmerg reads its standard input and up to nine additional files, all
15 in the tacct format (see acct.h(3HEAD)) or an ASCII version thereof. It
16 merges these inputs by adding records whose keys (normally user ID and
17 name) are identical, and expects the inputs to be sorted on those keys.
18
20 -a Produce output in ASCII version of tacct.
21
22
23 -i Produce input in ASCII version of tacct.
24
25
26 -p Print input with no processing.
27
28
29 -t Produce a single record that totals all input.
30
31
32 -u Summarize by user ID, rather than by user ID and name.
33
34
35 -v Produce output in verbose ASCII format, with more precise nota‐
36 tion for floating-point numbers.
37
38
40 Example 1 Using the acctmerg command.
41
42
43 The following sequence is useful for making "repairs" to any file kept
44 in this format:
45
46
47 example% acctmerg -v <filename1>filename2
48
49
50
51
52 Edit filename2 as you want:
53
54
55 example% acctmerg -i <filename2>filename1
56
57
58
60 See attributes(5) for descriptions of the following attributes:
61
62
63
64
65 ┌─────────────────────────────┬─────────────────────────────┐
66 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
67 ├─────────────────────────────┼─────────────────────────────┤
68 │Availability │SUNWaccu │
69 └─────────────────────────────┴─────────────────────────────┘
70
72 acctcom(1), acct(1M), acctcms(1M), acctcon(1M), acctprc(1M),
73 acctsh(1M), fwtmp(1M), runacct(1M), acct(2), acct.h(3HEAD), utmpx(4),
74 attributes(5)
75
76
77
78
79
80
81SunOS 5.11 22 Feb 1999 acctmerg(1M)