Lines Matching full:units
5 .Nm units
40 Specify the name of the units data file to load.
43 Ignored, for compatibility with GNU units.
51 Suppress prompting of the user for units and the display of statistics
52 about the number of units loaded.
61 .Dq Units data file not found .
64 .Pq which is fixed at Dq Fx units ,
65 the path to the units data file and exit.
67 Print the units in the conversion output.
88 Powers of units can be specified using the
100 Multiplication of units can be specified by using spaces
107 Division of units is indicated by the slash
122 .Ss Units
123 The conversion information is read from a units data file.
125 file includes definitions for most familiar units, abbreviations and
153 British units that differ from
168 .Ss Units file format
169 To find out what units are available read the standard units file.
170 If you want to add your own units you can supply your own file.
174 new units in terms of old ones so that a reduction leads to the
175 primitive units which are marked with
189 Prefixes are defined in the same way as standard units, but with
207 .Pa /usr/share/misc/definitions.units .
216 .Pa /usr/share/misc/definitions.units
219 tries to open the following files as the default units file:
220 .Pa /tmp/usr/share/misc/definitions.units ,
221 .Pa /usr/share/misc/definitions.units ,
223 .Pa /usr/local/usr/share/misc/definitions.units .
226 .Bl -tag -width /usr/share/misc/definitions.units -compact
227 .It Pa /usr/share/misc/definitions.units
228 The standard units file.
234 .It Sy Example 1 : No Simple conversion of units
239 .Li $ Ic units -o %0.f -t '4 gigabytes' bytes
250 units:
280 .Li $ Ic units '1|2 meter' cm
290 Using the division operator for units
294 .Li $ Ic units '1/2 meter' cm
308 .It Sy Example 4 : No Simple units file
309 Here is an example of a short units file that defines some basic
310 units:
322 .It Sy Example 5 : No Viewing units and conversions of the default units file
324 default units file:
326 .Li $ Ic less \&"$(units -U)"
331 .It can't find units file '%s'
332 The default units file is not in its default location
341 It is not possible to reduce the given units to one common unit:
361 .It memory for units exceeded in line %d
364 The requested conversion involves too many units
374 .It Units data file not found
375 The default units file is missing.
379 .It unable to open units file '%s'
380 One of the user-specified units files cannot be opened.
384 The provided unit cannot be found in the units file.
391 because the units are not proportional.
397 .Li $ Ic units \&"degF" \&"degC"
400 .Li $ Ic units \&"degF" \&"1 degC"
404 .Li $ Ic units \&"1 degF" \&"1 degC"
442 of the units converted and on the length of the data file.
444 The program should use a hash table to store units so that
445 it does not take so long to load the units list and check
453 does not handle reductions of long lists of units very well:
455 .Li $ Ic units \&"$(yes m | head -n 154)" \&"$(yes cm | head -n 154)"
458 .Li $ Ic units \&"$(yes m | head -n 333)" \&"$(yes cm | head -n 333)"
461 .Li $ Ic units \&"$(yes m | head -n 500)" \&"$(yes cm | head -n 500)"
462 units: memory overflow in unit reduction
466 .Li $ Ic units \&"$(yes m | head -n 501)" \&"$(yes cm | head -n 501)"
467 units: memory overflow in unit reduction
468 units: memory overflow in unit reduction
469 units: memory overflow in unit reduction