format filesize
for strings> format filesize {flags} (format value) ...rest
format value
: the format into which convert the file sizes...rest
: For a data structure input, format filesizes at the given cell pathsinput | output |
---|---|
filesize | string |
record | record |
table | table |
Convert the size column to KB
>ls|format filesizeKBsize
Convert the apparent column to B
>du|format filesizeBapparent
Convert the size data to MB
>4Gb|format filesizeMB
4000.0MB
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/format_filesize.html