--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
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
--padding | N | 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 |
Examples
Add a unit and pad the numbers to a column
numfmtx --to=iec --suffix=B --padding=7 1024 2048000 1.0KB
2.0MBHelp in the terminal
gnux help numfmtx --padding