Convert 5th field (1-indexed) to IEC Units without converting header

numfmt

  • Convert numbers to and from human-readable strings.
    More information: <https://www.gnu.org/software/coreutils/numfmt>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

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

click the source code to copy install numfmt on any operating system with command-not-found.com