nushell/docs/commands/into_filesize.md
Justin Ma c0a1d18e3d
update #4455, regenerate commands' docs and update make_docs script (#4586)
* feat: update #4455, regenerate commands' docs

* chore: update make_docs script
2022-02-21 11:26:00 -06:00

43 lines
589 B
Markdown

---
title: into filesize
layout: command
version: 0.59.0
---
Convert value to filesize
## Signature
```> into filesize ...rest```
## Parameters
- `...rest`: column paths to convert to filesize (for table input)
## Examples
Convert string to filesize in table
```shell
> [[bytes]; ['5'] [3.2] [4] [2kb]] | into filesize bytes
```
Convert string to filesize
```shell
> '2' | into filesize
```
Convert decimal to filesize
```shell
> 8.3 | into filesize
```
Convert int to filesize
```shell
> 5 | into filesize
```
Convert file size to filesize
```shell
> 4KB | into filesize
```