--from
Auto-scale input numbers to UNITs; default is 'none'; see UNIT below.
An option of numfmtx.
Usage
numfmtx --from=UNIT [NUMBER]...Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
--from | UNIT | auto-scale input numbers to UNITs; default is 'none'; see UNIT below |
Examples
Turn a size from a config file back into bytes
numfmtx --from=iec 4G4294967296Read sizes written either way, 1K as 1000 and 1Ki as 1024
numfmtx --from=auto 1K 1Ki1000
1024Help in the terminal
gnux help numfmtx --from