mirror of
https://github.com/nushell/nushell.git
synced 2024-12-01 21:03:58 +01:00
23 lines
328 B
Markdown
23 lines
328 B
Markdown
|
# math sum
|
||
|
Finds the sum of a list of numbers or tables
|
||
|
|
||
|
## Usage
|
||
|
```shell
|
||
|
> math sum {flags}
|
||
|
```
|
||
|
|
||
|
## Flags
|
||
|
* -h, --help: Display this help message
|
||
|
|
||
|
## Examples
|
||
|
Sum a list of numbers
|
||
|
```shell
|
||
|
> echo [1 2 3] | math sum
|
||
|
```
|
||
|
|
||
|
Get the disk usage for the current directory
|
||
|
```shell
|
||
|
> ls --all --du | get size | math sum
|
||
|
```
|
||
|
|