numfmt(1)
π numfmt(1) β the General Commands Manual, but make it cute β¨
okay bestie, listen. this is numfmt, from the General Commands Manual section, and it's literally the glow-up machine for numbers. it turns numbers into human-readable strings and back again, and honestly? it ate. π
β¨ NAME β¨
numfmt β Convert numbers from/to human-readable strings
π¦ SYNOPSIS π¦
numfmt [--debug] [-d|--delimiter] [--field] [--format] [--from]
[--from-unit] [--to] [--to-unit] [--padding] [--header] [--round]
[--suffix] [--unit-separator] [--invalid] [-z|--zero-terminated]
[-h|--help] [-V|--version] [NUMBER]
πΈ DESCRIPTION πΈ
Convert numbers from/to human-readable strings.
like. that's the whole vibe. numbers go in, gorgeous strings come out, and vice versa. π
π OPTIONS π
--debugβ print warnings about invalid input π (she's telling you when something's off)-d,--delimiter <X>β useXinstead of whitespace for the field delimiter--field <FIELDS>β replace the numbers in these input fields; see FIELDS below. (default:1)--format <FORMAT>β use printf style floating-pointFORMAT; see FORMAT below for the deets--from <UNIT>β auto-scale input numbers to UNITs; see UNIT below. (default:none)--from-unit <N>β specify the input unit size. (default:1)--to <UNIT>β auto-scale output numbers to UNITs; see UNIT below. (default:none)--to-unit <N>β the output unit size. (default:1)--padding <N>β pad the output to N characters; positive N will right-align; negative N will left-align; padding is ignored if the output is wider than N; the default is to automatically pad if a whitespace is found--header [<N>]β print (without converting) the first N header lines; N defaults to1if not specified--round <METHOD>β use METHOD for rounding when scaling. (default:from-zero)
Possible values:
updownfrom-zerotowards-zeronearest
--suffix <SUFFIX>β print SUFFIX after each formatted number, and accept inputs optionally ending with SUFFIX--unit-separator <STRING>β use STRING to separate the number from any unit when printing; by default, no separator is used--invalid <INVALID>β set the failure mode for invalid input. (default:abort)
Possible values:
abortfailwarnignore
-z,--zero-terminatedβ line delimiter is NUL, not newline-h,--helpβ Print help-V,--versionβ Print version
π EXTRA π
not me putting the whole lore dump here but bestie you NEED it π§
UNIT options:
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 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 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.7.0
and that's the whole page, bestie β mwah π this was numfmt (uutils coreutils) 0.7.0, straight out of the General Commands Manual. periodt. π«Άβ¨
π¦ where this page comes from
- epel 10: rust-coreutils-devel 0.7.0-10.el10_3 Β· MIT
- epel 10: uutils-coreutils 0.7.0-10.el10_3 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- fedora 43: rust-coreutils-devel 0.7.0-12.fc43 Β· MIT
- fedora 43: uutils-coreutils 0.7.0-12.fc43 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms