Skip to Content
gnux

--from

Auto-scale input numbers to UNITs; default is 'none'; see UNIT below.

An option of numfmtx.

Usage

numfmtx --from=UNIT [NUMBER]...

Details

ShortLongValueDefaultMeaning
--fromUNITauto-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 4G
Output
4294967296

Read sizes written either way, 1K as 1000 and 1Ki as 1024

numfmtx --from=auto 1K 1Ki
Output
1000
1024

Help in the terminal

gnux help numfmtx --from

On this page