Skip to Content
gnux

--padding

Pad the output to N characters; positive N will right-align; negative N will left-align; padding is ignored if the output is wider than N; the default is to automatically pad if a whitespace is found.

An option of numfmtx.

Usage

numfmtx --padding=N [NUMBER]...

Details

ShortLongValueDefaultMeaning
--paddingNpad the output to N characters; positive N will right-align; negative N will left-align; padding is ignored if the output is wider than N; the default is to automatically pad if a whitespace is found

Examples

Add a unit and pad the numbers to a column

numfmtx --to=iec --suffix=B --padding=7 1024 2048000
Output
  1.0KB
  2.0MB

Help in the terminal

gnux help numfmtx --padding

On this page