Forrest logo
back to context overview

numfmt

List of commands for numfmt:

  • numfmt:tldr:120bb numfmt: Convert 1.5K (SI Units) to 1500.
    $ numfmt --from=${si} ${1-5K}
    try on your machine
    explain this command
  • numfmt:tldr:152c1 numfmt: Convert to IEC units, pad with 5 characters, left aligned.
    $ du -s * | numfmt --to=${iec} --format="${%-5f}"
    try on your machine
    explain this command
  • numfmt:tldr:5daf7 numfmt: Convert 5th field (1-indexed) to IEC Units without converting header.
    $ ls -l | numfmt --header=${1} --field=${5} --to=${iec}
    try on your machine
    explain this command
back to context overview