NUMFMT(1) NUMFMT(1) numfmt - Convert numbers from/to human-readable strings numfmt []... []... (), . . --debug -d, --delimiter=X --field= replace the numbers in these input fields (default=1); see FIELDS below --format= ,,printf" ; --from= ; ,,none"; --from-unit=N ( 1) --grouping , . 1.000.000 ( /) --header[=N] ( ) N ; N 1 --invalid= : : ,,abort" -- (), ,,fail" -- , ,,warn" -- , ,,ignore" -- --padding=N N ; N ; N ; N; --round= ; : ,,up" -- , ,,down" -- , ,,from-zero" -- (), ,,towards-zero" -- , ,,nearest" -- --suffix= , --to= ; --to-unit=N ( 1) -z, --zero-terminated , --help --version : none ; auto / : 1K = 1000, 1Ki = 1024, 1M = 1000000, 1Mi = 1048576, si : 1K = 1000, 1M = 1000000, ... iec : 1K = 1024, 1M = 1048576, ... iec-i : 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 . , %s 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 . coreutils: Copyright (C) 2023 Free Software Foundation, Inc. 3+: 3 . : . , . ,,info '(coreutils) numfmt invocation'" ; 3 . . , - TODO <>. coreutils 9.4 2024 NUMFMT(1)