Title says it all really, but I\'m currently using a simple function with a case statement to convert human-readable file size strings into a size in bytes. It works well en
See man numfmt.
man numfmt
# numfmt --from=iec 42 512K 10M 7G 3.5T 42 524288 10485760 7516192768 3848290697216 # numfmt --to=iec 42 524288 10485760 7516192768 3848290697216 42 512K 10M 7.0G 3.5T