numfmt

Convert numbers to and from human-readable strings. More information: https://www.gnu.org/software/coreutils/manual/html_node/numfmt-invocation.html.…

numfmt

Convert numbers to and from human-readable strings. More information: https://www.gnu.org/software/coreutils/manual/html_node/numfmt-invocation.html.

numfmt --from={{si}} {{1.5K}}

ls -l | numfmt --header={{1}} --field={{5}} --to={{iec}}

du -s * | numfmt --to={{iec}} --format="{{%-5f}}"

Также может быть вам интересно:
КодТрюки BashНастройкиТерминал/Консоль
← nudoku nvidia-smi →