4 "user id(s) to take into account"
5 string typestr="uid_spec"
8 An uid specifier may be a single number, or a range of uids.
11 --uid 42 # only consider uid 42
12 --uid 42- # only consider uids greater or equal than 42
13 --uid 23-42 # only consider uids between 23 and 42, inclusively.
14 --uid 23-42,666-777,88 # consider uids 23-42, 666-777 and 88.
24 Only print num lines of output. If negative (the default),
30 "supress descriptions for listings/summaries"
33 This is mostly useful to feed the output of adu to scripts.
36 option "select-mode" m
37 #~~~~~~~~~~~~~~~~~~~~~
38 "How to print the results of the query"
40 values="global_list","global_summary","user_list","user_summary"
44 global_list: List of directories, regardless of owner.
45 global_summary: Only print totals.
46 user_list: Print a list for each admissible uid.
47 user_summary Print totals for each admissible uid.
52 "how to sort the user list or the global list"
54 values="size","file_count"
58 This option is ignored if select-mode is neither \"user_list\", nor
64 "file to write output to"
65 string typestr="<path>"
69 If empty, or not given, use stdout.
72 option "user-summary-sort" -
73 #~~~~~~~~~~~~~~~~~~~~~~~~~~~
74 "how to sort the user-summary"
75 enum typestr="col_spec"
76 values="name","uid","dir_count","file_count","size"
80 It is enough to specify the first letter of the column specifier,
81 e.g. \"--user-summary-sort f\" sorts by file count.
84 option "print-base-dir" -
85 #~~~~~~~~~~~~~~~~~~~~~~~~
86 "whether to include the base-dir in the output"
89 If this flag is given, all directories printed are prefixed
90 with the base directory. The default is to print paths relative
94 ########################
95 section "Format strings"
96 ########################
98 option "global-list-format" -
99 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
100 "How to format the global list"
101 string typestr="<format>"
102 default="%(size:r:8) %(files:r:8) %(dirname)\n"
104 size: Total size of all files
105 files: The number of files
106 dirname: The name of the directory
110 option "global-summary-format" -
111 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
112 "How to format the global summary"
113 string typestr="<format>"
114 default="#directories: %(dirs), #files: %(files), size: %(size)\n\n"
116 dirs: The number of directories
117 files: The number of files
118 size: Total size of all files
122 option "user-list-format" -
123 #~~~~~~~~~~~~~~~~~~~~~~~~~~
124 "How to format the user list"
125 string typestr="<format>"
126 default="%(size:r:5) %(files:r:5) %(dirname)\n"
128 pw_name: The user name
130 files: The number of files
131 size: size of all files in that directory
132 dirname: The name of the directory
135 option "user-summary-format" -
136 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
137 "How to format the user summary"
138 string typestr="<format>"
139 default="%(pw_name:l:16) %(uid:r:5) %(dirs:r:5) %(files:r:5) %(size:r:5)\n"
141 pw_name: The user name
143 dirs: The number of directories
144 files: The number of files
145 size: Total size of all files