http://snippets.bentasker.i2p/posts/bash/converting-human-readable-values-back-to-byte-counts.html
Skip to main content Private area snippets.bentasker.co.uk Search Tags BASH Python JS Misc Converting Human Readable Sizes Back To Bytes (BASH) Ben Tasker 2025-02-11 09:30 Category: BASH It's quite common, in things like Kubernetes manifests, to use IEC-I size notations: Ki, Mi, Gi etc. This format is extremely accessible for humans, but if you're intending to programmatically extract and store them somewhere, you'll probably want to normalise them back to bytes.