NUMFMT(1) numfmt -- / numfmt []... []... (); , . , , . --debug -d, --delimiter=X X --field= ( 1); . --format= printf- ; . --from=_ _; <>; . _ --from-unit=N ( , 1) --grouping , , 1 000 000 ( , C/POSIX) --header[=N] ( ) N ; N , 1 --invalid= ; : abort ( ), fail, warn, ignore --padding=N N ; N , -- ; , , N; , --round= ; : up, down, from-zero ( ), towards-zero, nearest --suffix= --to=_ _; . _ --to-unit=N ( , 1) -z, --zero-terminated NUL --help --version _: none , auto / : 1K = 1000, 1k = 1000, 1Ki = 1024, 1M = 1000000, 1Mi = 1048576, si : 1k = 1000, 1K = 1000, 1M = 1000000, ... iec : 1K = 1024, 1k = 1024, 1M = 1048576, ... iec-i : 1Ki = 1024, 1ki = 1024, 1Mi = 1048576, ... cut(1): N N- , 1 N- N- N-M N- M- -M M- - / . <<%f>>. (%'f) --grouping ( ). (%10f) . (%010f) . (%-10f) . (%.1f) , . 0, . numfmt 2. --invalid='fail', , 2. --invalid='warn', , 0. --invalid='ignore', , 0. $ numfmt --to=si 1000 -> <<1,0k>> $ numfmt --to=iec 2048 -> <<2,0K>> $ numfmt --to=iec-i 4096 -> <<4,0Ki>> $ echo 1K | numfmt --from=si -> <<1000>> $ echo 1K | numfmt --from=iec -> <<1024>> $ df -B1 | numfmt --header --field 2-4 --to=si $ ls -l | numfmt --header --field 5 --to=iec $ ls -lh | numfmt --header --field 5 --from=iec --padding=10 $ ls -lh | numfmt --header --field 5 --from=iec --format %10f (Assaf Gordon). - GNU coreutils: Copyright (C) 2024 Free Software Foundation, Inc. GPLv3+: GNU GPL 3 . : . , . , info '(coreutils) numfmt invocation' ; GNU (GNU General Public License - GPL, 3 ) , - . - , , <>. GNU coreutils 9.5 2024 . NUMFMT(1)