NUMFMT(1)
π NUMFMT(1) β General Commands Manual π
okay bestie, welcome to the General Commands Manual page for numfmt. She literally converts numbers from/to human-readable strings, and she's about to explain every single flag like it's her Roman Empire. let's go π«Ά
β¨ NAME β¨
numfmt β Convert numbers from/to human-readable strings
πΈ SYNOPSIS πΈ
numfmt [OPTION]... [NUMBER]...
π¦ DESCRIPTION π¦
Convert numbers from/to human-readable strings. that's the whole vibe, no cap. β¨
π OPTIONS π
--debugβ print warnings about invalid input--groupingβ use locale-defined grouping of digits, for example1,000,000(which means it has no effect in theC/POSIXlocale)-d,--delimiter <X>β useXinstead of whitespace for field delimiter--field <FIELDS>[default: 1] β replace the numbers in these input fields; see FIELDS below--format <FORMAT>β use printf style floating-pointFORMAT; see FORMAT below for details--from <UNIT>[default: none] β auto-scale input numbers to UNITs; see UNIT below--from-unit <N>[default: 1] β specify the input unit size--to <UNIT>[default: none] β auto-scale output numbers to UNITs; see UNIT below--to-unit <N>[default: 1] β the output unit size--padding <N>β pad the output toNcharacters; positiveNwill right-align; negativeNwill left-align; padding is ignored if the output is wider thanN; the default is to automatically pad if a whitespace is found--header[=<N>]β print (without converting) the firstNheader lines;Ndefaults to1if not specified--round <METHOD>[default: from-zero] β useMETHODfor rounding when scaling
Possible values:
updownfrom-zerotowards-zeronearest
--suffix <SUFFIX>β printSUFFIXafter each formatted number, and accept inputs optionally ending withSUFFIX--unit-separator <STRING>β useSTRINGto separate the number from any unit when printing; by default, no separator is used--invalid <INVALID>[default: abort] β set the failure mode for invalid input
Possible values:
abortfailwarnignore
-z,--zero-terminatedβ line delimiter is NUL, not newline-h,--helpβ Print help-V,--versionβ Print version
π₯ EXTRA π₯
π UNIT options β the unit lore π
noneβ no auto-scaling is done; suffixes will trigger an errorautoβ accept optional single/two letter suffix:
1K = 1000, 1Ki = 1024, 1M = 1000000, 1Mi = 1048576,
siβ accept optional single letter suffix:
1K = 1000, 1M = 1000000, ...
iecβ accept optional single letter suffix:
1K = 1024, 1M = 1048576, ...
iec-iβ accept optional two-letter suffix:
1Ki = 1024, 1Mi = 1048576, ...
βοΈ FIELDS β cut(1) style, fr fr βοΈ
FIELDS supports cut(1) style field ranges:
N N'th field, counted from 1
N- from N'th field, to end of line
N-M from N'th to M'th field (inclusive)
-M from first to M'th field (inclusive)
- all fields
Multiple fields/ranges can be separated with commas.
π FORMAT β the printf-ish details π
FORMAT must be suitable for printing one floating-point argument %f. Optional quote (%'f) will enable --grouping (if supported by current locale). Optional width value (%10f) will pad output. Optional zero (%010f) width will zero pad the number. Optional negative values (%-10f) will left align. Optional precision (%.1f) will override the input determined precision.
π VERSION π
v(uutils coreutils) 0.12.0
xoxo, your numfmt bestie π
β this was the General Commands Manual page for NUMFMT(1), from v(uutils coreutils) 0.12.0, dated 2026-09-17. periodt π
π¦ where this page comes from
- arch rolling: uutils-coreutils 0.12.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms