numfmt Command Examples

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

numfmt --from=si 1.5K

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

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