format filesize for strings

Converts a column of filesizes to some specified format.


> format filesize (format value)


  • format value: the format into which convert the file sizes
  • For a data structure input, format filesizes at the given cell paths


Convert the size column to KB

> ls | format filesize KB size

Convert the apparent column to B

> du | format filesize B apparent

Convert the size data to MB

> 4Gb | format filesize MB
4000.0 MB