summaryrefslogtreecommitdiff
path: root/static/unix-v10/man1/pwintf.1
blob: 40c4dd7f7e1396a4e465cf6e7a7b017fb7473e1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
.TH PWINTF 1 SHARE
.SH NAME
pwintf \- print selected limits file entries using printf formats
.SH SYNOPSIS
.B pwintf
[-p shares_file] expression format [identifier..]
.SH DESCRIPTION
For each entry in the system shares file the expression
argument is evaluated.
If the result is non zero
the remaining arguments are treated as if they were arguments
to
.I printf
(see
.IR printf (3S)).
An alternative shares file may be specified with the
.I -p
option.
.PP
Expression elements are:
.TP "\w'identifierXXXX'u"
||
Binary or. Non zero if the left hand side or the right hand side
evaluates to a non zero value.
.TP
&&
Binary and. Non zero if the left hand side and the right hand
side are both non zero.
.TP
== !=
Equal/not equal to. Non zero if the left hand side
and the right hand side
are equal/not equal.
.TP
> <
Greater/less than. Non zero is the left hand side is
greater/less than the right hand side.
.TP
>= <=
Greater/less than or equal to. Non zero if the left hand side
is greater/less than or equal to the right hand side.
.TP
~
Regular expression matching. Non zero if the string on the left
hand side matches the regular expression given by the string
on the right hand side. Regular expressions are given in the
style of
.I ed
(see
.IR ed (1)).
.TP
!
Unary not. Non zero if the right hand side evaluates to zero.
.TP
".."
A string of characters.
.TP
{..}
A date.
Date specifications are in the style:
.B {[[[[[yy]mm]dd]hh]mm][.ss]}.
For example
.B {01271200}
would be noon on the 27th of January in the current year.
.TP
(..)
A sub-expression.
.TP
identifier
Any one of the identifiers described below.
.TP
number
A decimal digit string.
.PP
Note that the expression may have to be quoted
to stop the shell from interpreting symbols such as
\fB&\fR
as symbols having special meaning.
.SH FORMATS
All
.I printf
format specifications and modifiers are allowed except the
\&'*' modifier. To facilitate the printing of dates
which are stored as the number of seconds since
1st January 1970,
\fB%t\fR
may be used. This will cause the corresponding integral
argument to be interpreted as a time and given in the style
of
.I ctime
(see
.IR ctime (3C)).
All modifiers will be ignored in such a time specification.
.SH IDENTIFIERS
In the following list words printed in
.B "this font"
are as defined in the include files <shares.h> and <sys/lnode.h>.
.PD 0
.TP "\w'assumeddisconXX'u"
activelnode
1 if the account has the
.B ACTIVELNODE
flag set.
.TP
changed
1 if the account has the
.B CHANGED
flag set.
.TP
charge
The long term accumulated costs of the account as a floating point number.
.TP
deadgroup
1 if the account has the
.B DEADGROUP
flag set.
.TP
dirpath
The initial directory of the account as a string.
.TP
flags
A string containing the names of the flags set for this account.
.TP
gecos
The ``gecos'' field of the account as a string.
.TP
gid
The integral gid of this account.
.TP
lastref
1 if the account has the
.B LASTREF
flag set.
.TP
lastused
The time the account last did anything.
.TP
lname
The login name of the account as a string.
.TP
notshared
1 if the account has a
.B NOTSHARED
flag.
.TP
now
The current time.
.TP
pword
The encrypted password of the account as a string.
.TP
sgroup
The uid of the scheduling group of this account.
.TP
sgroupname
The lname of the scheduling group of this account.
.TP
shares
The integral number of shares the account has.
.TP
shellpath
The initial shell of the account as a string.
.TP
usage
The usage of the account as a floating point number.
.TP
uid
The integral uid of this account.
.PD
.SH FILES
/etc/passwd
.br
/etc/shares
.SH SEE ALSO
printf(3S), ctime(3C), shares(5).
.SH DIAGNOSTICS
Yes. A summary of usage is given when pwintf
is invoked with no arguments.