Move /var/svc/log to /var/log/svc
[unleashed/lotheac.git] / share / man / man8 / acctmerg.8
blob65fa4c834c652736acedba5e61f1acb68427e609
1 '\" te
2 .\"  Copyright 1989 AT&T  Copyright (c) 1999 Sun Microsystems, Inc.  All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH ACCTMERG 8 "Feb 22, 1999"
7 .SH NAME
8 acctmerg \- merge or add total accounting files
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fB/usr/lib/acct/acctmerg\fR [\fB-a\fR] [\fB-i\fR] [\fB-p\fR] [\fB-t\fR] [\fB-u\fR] [\fB-v\fR]
13      [\fIfilename\fR] ...
14 .fi
16 .SH DESCRIPTION
17 .sp
18 .LP
19 \fBacctmerg\fR reads its standard input and up to nine additional files, all in
20 the \fBtacct\fR format (see \fBacct.h\fR(3HEAD)) or an \fBASCII\fR version
21 thereof. It merges these inputs by adding records whose keys (normally user
22 \fBID\fR and name) are identical, and expects the inputs to be sorted on those
23 keys.
24 .SH OPTIONS
25 .sp
26 .ne 2
27 .na
28 \fB\fB-a\fR\fR
29 .ad
30 .RS 6n
31 Produce output in \fBASCII\fR version of \fBtacct\fR.
32 .RE
34 .sp
35 .ne 2
36 .na
37 \fB\fB-i\fR\fR
38 .ad
39 .RS 6n
40 Produce input in \fBASCII\fR version of \fBtacct\fR.
41 .RE
43 .sp
44 .ne 2
45 .na
46 \fB\fB-p\fR\fR
47 .ad
48 .RS 6n
49 Print input with no processing.
50 .RE
52 .sp
53 .ne 2
54 .na
55 \fB\fB-t\fR\fR
56 .ad
57 .RS 6n
58 Produce a single record that totals all input.
59 .RE
61 .sp
62 .ne 2
63 .na
64 \fB\fB-u\fR\fR
65 .ad
66 .RS 6n
67 Summarize by user \fBID,\fR rather than by user \fBID\fR and name.
68 .RE
70 .sp
71 .ne 2
72 .na
73 \fB\fB-v\fR\fR
74 .ad
75 .RS 6n
76 Produce output in verbose \fBASCII\fR format, with more precise notation for
77 floating-point numbers.
78 .RE
80 .SH EXAMPLES
81 .LP
82 \fBExample 1 \fRUsing the \fBacctmerg\fR command.
83 .sp
84 .LP
85 The following sequence is useful for making "repairs" to any file kept in this
86 format:
88 .sp
89 .in +2
90 .nf
91 example% acctmerg \|\|\fB-v\fR \|<\fIfilename1\fR\fB\|>\fR\fIfilename2\fR
92 .fi
93 .in -2
94 .sp
96 .sp
97 .LP
98 Edit \fIfilename2\fR as you want:
101 .in +2
103 \fBexample% acctmerg \|\|\fR\fB-i\fR\fB \|\fR\fI<filename2\fR\fB\|>\fR\fIfilename1\fR
105 .in -2
108 .SH SEE ALSO
111 \fBacctcom\fR(1), \fBacct\fR(8), \fBacctcms\fR(8), \fBacctcon\fR(8),
112 \fBacctprc\fR(8), \fBacctsh\fR(8), \fBfwtmp\fR(8), \fBrunacct\fR(8),
113 \fBacct\fR(2), \fBacct.h\fR(3HEAD), \fButmpx\fR(4), \fBattributes\fR(5)
116 \fI\fR